Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Make panorama move like a layer on the map?

How would I do this? Right now I have:

Code:
      @panorama.ox = $game_map.display_x 
      @panorama.oy = $game_map.display_y

But then the panorama moves REALLY FAST. I'm trying to get the panorama to basically stand 'still', like the first layer of the background, and scroll with the same speed as the map. So I can use it for grass. ^^

Thankees~
 
This means your setting the panorama to the map size lol.

Hmmmm... maybe set it to map size?

It should work IF the panorama is as big as your map.

Remove that and make the picture bigger.  :thumb:
 
Here's a thought....

If you look a few lines up, the tilemap origin gets set to "$game_map.display_x / 4"

I would assume if you set the panorama origin to the same thing, it would appear stationary.

Just a theory.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top