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.

Multiple frame title

I would like a script, that makes it so, the title screen is a certain number of pictures, in order by which they are named in the script, endlessly looping.
Fake Script, not real RGSS:
#######################################
# [Squarey thing] Multi image Title - by me #
#######################################
def id Images = (Title1, 2, 3, 4, 5)

Loop Images::
"Title1" = RPG.Cache Title
"2" = RPG.Cache Title
"3-5 = RPG.Cacge Title
images.show: scene_title.new
Animation = Show Image = 1, 2, 3, 4, 1, etc.
end
 
Try this:
#===============================================================================
# Multiple Frame Title
# by The Sleeping Leonhart
#===============================================================================
class Scene_Title
alias scene_title_main main
def main
#==========================CONFIGURATION==========================
@frame_number = 4 #Number of picture
@title_name = "Title" # Name of the picture
@wait = 40 #waiting time before is showed another frame
#=================================================================
@frame = 2
@wait_count = 1
scene_title_main
end
alias scene_title_update update
def update
if @wait_count < @wait
@wait_count += 1
if @wait_count == @wait
if @frame < @frame_number+1
@sprite.bitmap.dispose
@sprite.dispose
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.title(@title_name+@frame.to_s)
@wait_count = 1
if @frame == @frame_number
@frame = 0
end
end
@frame += 1
end
end
scene_title_update
end
end
You must put the first image like title it in the Database.
 

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