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.

Panorama on the background.

Vage title, I know.

If you walk on the map and the panorama is visible, it'll stand on the background and if you walk to the right, the same panorama starts from the right again. Ok, this is explained pretty weird, though.

I'll ask what I want:
I want the panorama in the background to serve like a picture that is on the background and stays there, so it moves with the screen.

I know I need to change something in the script, but what?
 
I think this is what you want :)

Find these lines in Spriteset_Map's "def update":

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

Comment them like this:

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

This is incompatible with many scripts (you'll need to edit them instead)
 
sandgolem said:
I think this is what you want :)

Find these lines in Spriteset_Map's "def update":

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

Comment them like this:

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

This is incompatible with many scripts (you'll need to edit them instead)

It works. Thanks a bunch!
Man... That I needed to wait for this so long':|
Thanks again!
 

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