Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
albertibay

diagonal scroll

Question

3 answers to this question

Recommended Posts

  • 0

Not too difficult. You'll have to write out some custom defs in Game_Map, but basically, it would be something like this:

 

class Game_Map
 #--------------------------------------------------------------------------
 # * Scroll Down
 #	 distance : scroll distance
 #--------------------------------------------------------------------------
 def scroll_down_left(distance)
   @display_y = [@display_y + distance, (self.height - 15) * 128].min
   @display_x = [@display_x - distance, 0].max
 end
end

 

Then to execute, run a script $game_map.scroll_down_left(distance)

 

Hint: To figure out what numbers to use with Distance there, just mess with the original script by putting in "print distance" somewhere in one of those definitions. Dont forget to pull it back out once you have the info you want.

Share this post


Link to post
Share on other sites
  • 0

It was an example so you could create the other definitions yourself. No, it isnt possible to do without a script.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...