I'm using the 'Animated Title' function, which shows a couple of frames (in my case 25), and after that it repeats.
Is it possible to make it stop at the last frame, and show other frames? For example:
my title frames are:
title0.png
title1.png
title2.png
and after title2 is shown, it doesn't repeat, but it shows start0.png:
start0.png
start1.png
start2.png
But the 'start' frames will be repeaten.
Here's the code, hope you can help.
Is it possible to make it stop at the last frame, and show other frames? For example:
my title frames are:
title0.png
title1.png
title2.png
and after title2 is shown, it doesn't repeat, but it shows start0.png:
start0.png
start1.png
start2.png
But the 'start' frames will be repeaten.
Here's the code, hope you can help.
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# Animated Title by Blizzard
# Version: 1.33b
# Type: Game Graphic Design Improvement
# Date: 17.3.2006
# Date v1.3: 26.5.2006
# Date v1.32b: 14.11.2006
# Date v1.33b: 12.1.2007
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# v1.3 features:
# - completely overworked and 99% SDK compatible
#
# v1.32b features:
# - slightly improved code
#
# v1.33b features:
# - slightly improved code
#
#
# Instructions:
#
# - if you want to change the delay between the frames change "DELAY"
# - name the frames of your title pictures "title0", "title1" and so on.
# - to change the number of frames, change the value of "PICS"
# - be sure to set "title0" as your title screen in the database
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
DELAY = 3 # change the delay
PICS = 25 # number of pictures/frames
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# END Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#==============================================================================
# Scene_Title
#==============================================================================
class Scene_Title
alias initialize_animated_title initialize
def initialize
initialize_animated_title
@frame = @counter = 0
end
alias update_animated_title update
def update
if TONS_OF_ADDONS::ANIMATED_TITLE && PICS > 1
@counter += 1
if @counter == DELAY
@counter = 0
@frame = (@frame + 1) % PICS
@sprite.bitmap = RPG::Cache.title("title#{@frame}")
Graphics.transition
end
end
update_animated_title
end
end
# Animated Title by Blizzard
# Version: 1.33b
# Type: Game Graphic Design Improvement
# Date: 17.3.2006
# Date v1.3: 26.5.2006
# Date v1.32b: 14.11.2006
# Date v1.33b: 12.1.2007
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# v1.3 features:
# - completely overworked and 99% SDK compatible
#
# v1.32b features:
# - slightly improved code
#
# v1.33b features:
# - slightly improved code
#
#
# Instructions:
#
# - if you want to change the delay between the frames change "DELAY"
# - name the frames of your title pictures "title0", "title1" and so on.
# - to change the number of frames, change the value of "PICS"
# - be sure to set "title0" as your title screen in the database
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
DELAY = 3 # change the delay
PICS = 25 # number of pictures/frames
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# END Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#==============================================================================
# Scene_Title
#==============================================================================
class Scene_Title
alias initialize_animated_title initialize
def initialize
initialize_animated_title
@frame = @counter = 0
end
alias update_animated_title update
def update
if TONS_OF_ADDONS::ANIMATED_TITLE && PICS > 1
@counter += 1
if @counter == DELAY
@counter = 0
@frame = (@frame + 1) % PICS
@sprite.bitmap = RPG::Cache.title("title#{@frame}")
Graphics.transition
end
end
update_animated_title
end
end