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.

[RESOLVED] Making panorama graphic stationary

(This is for RMXP)

My apologies if this has already been asked, but I'm trying to find a way to make the panorama graphic fixed, or stationary.  Certain panorama graphics have a vertical gradient, and when it gets to the end of the graphic and loops back to the top very obviously.  It looks very bad, for instance, when the sunset panorama loops from the top to the bottom.  Is there a way to make it so that the panorama graphic stays put, no matter where on the map the character goes?

Here's an example of what I mean:
http://i286.photobucket.com/albums/ll85/irekismaren/PanoramaError.png[/img]

Thanks in advance to anyone who can help! :smile:
 

foogoo

Member

I am sure through some sort of script you could do this but I was thinking just take the picture into photoshop and turn the panorama into a seamless texture. then you won't be able to tell when its repeating as bad
 
Try this:

Code:
class Spriteset_Map
  Stop_Panorama_Scrolling_Switch = 1
  alias_method :seph_stoppanscrolling_ssmap_update, :update
  def update
    seph_stoppanscrolling_ssmap_update
    if $game_switches[Stop_Panorama_Scrolling_Switch]
      @panorama.ox = 0
      @panorama.oy = 0
    end
  end
end

Just alter that 1 with whatever switch to turn this on and off.
 
To hear people whine about it. lol

They have seemed to take a lot out in XP from 2K3 (or so I hear), but they gave us scripting, which allows so much more than anything 2K3 or previous versions could ever give us.
 

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