Jump to content

Announcing our new website

To find out the latest about our new website, visit Game Dev Unlimited

- - - - -

[Request] Panorama Title Screen

panorama title screen script

  • You cannot reply to this topic
1 reply to this topic

#1 JengaSoft

    Newbie

  • Member
  • 2 posts

Posted 06 January 2012 - 12:56 PM

Hi, I would like to put a panorama behind my transparent title screen. Is there a script or way to do that?

#2 Moonpearl

    Extreme Member

  • Member
  • 200 posts

Posted 06 January 2012 - 03:10 PM

This is quite simple, actually. Edit the Scene_Title script, Search for @sprite = Sprite.new, and right before that line, add the following:

@panorama = Plane.new
@panorama.bitmap = Cache.panorama(filename)

Replace filename with the name of the panorama you'd like to display. If you want it to scroll, add the following to Scene_Title's update method:

@panorama.ox += 1  # Horizontal scroll
@panorama.oy += 1  # Vertical scroll

Change the values according to the desired effect. Finally, don't forget to remove the panorama once the scene changes. To do this, search for @sprite.dispose, and right after, add the following:

@panorama.dipose

This should do the trick.

Edited by Moonpearl, 06 January 2012 - 03:11 PM.






0 user(s) are reading this topic

members, guests, anonymous users