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] Scrolling Title Screen

Status
Not open for further replies.

Culex

Member

I searched long and far and couldn't find a related topic. And I'm not talking about the animated title screen, a topic of which I have found.

How does one make the background in the title screen scroll (either left or right), while the front layer remains still? I know it involves two pictures and that it is placed somewhere in Scene_Title, but that's about it. I remember SephirothSpawn helped me with that back in the day.

If RMXP.net hadn't gone down, I'd have never posted this because I could have just tracked my old topic down. I recently purchased the LEGAL version of RMXP and I therefore had to purify my computer from the undiluted EVIL of the previous illegal version. That means I lost all my scripts AND in all of the furious cleansing, I forgot to copy and paste...*oops* ':|

A quadruple helping of "thanks!" in advance.
 
Make the background a plane instead of a sprite.

Code:
@plane = Plane.new
@plane.bitmap = RPG::Cache.title($data_system.title_name)

Then in def update of your title class, put:

Code:
@plane.ox += 1

or

Code:
@plane.ox -= 1
 

Culex

Member

Not only did it work very well, but I also didn't have to paste a whole new and different script into Scene_Title just to have the SAME effect. Thanks, Dark Zero!
 
Dark Zero said:
Make the background a plane instead of a sprite.

Code:
@plane = Plane.new
@plane.bitmap = RPG::Cache.title($data_system.title_name)

Then in def update of your title class, put:

Code:
@plane.ox += 1

or

Code:
@plane.ox -= 1
nice work there... and you can also use
Code:
@plane.oy -= 1
for upwards movement or
Code:
@plane.oy += 1
for downwards movement
 
Status
Not open for further replies.

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