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.

Scrolling Title

Is there any way to have a scrolling title screen? Like a panorama that loops? It would look most optically pleasing and i am a noob for scripting?

Is it possible and can someone please help me?
 
You would use the Plane class, instead of sprite.

Then modify the ox/oy of it. It works just like a sprite, but tiles it.

Code:
    @sprite = Plane.new(Viewport.new(0, 0, 640, 480))
    @sprite.bitmap = RPG::Cache.title($data_system.title_name)

#...

# Under def update

    @sprite.ox += 4

Something like that.
 
Well, in Scene_Title, find your line

@sprite = Sprite.new

Replace that with

@sprite = Plane.new


Now, under def update, you just need to decide how you want it to scroll.

@sprite.ox += x_mod
@sprite.oy += y_mod

Replace x_mod with x position movements and y_mod with y postion movements.
 

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