Sorry, I've been busy the last few days, have a script though!
CODE
#==============================================================================
# ** VX: Night_Runner's Adding an animation to Scene_Title
#------------------------------------------------------------------------------
# History:
# Date Created: 15/April/2012
# Created for: Guyver's Bane
# @> http://www.rpgrevolution.com/forums/index.php?showtopic=56139
#
# Description:
# This script shows animations on the title screen
#
# How to Install:
# Copy this entire script. In your game editor select Tools >> Script Editor.
# Along the left hand side scroll to the bottom, right click on 'Main' and
# select 'Insert'. Paste on the right.
#==============================================================================
#==============================================================================
# ** Customisation
#==============================================================================
module NR_TitleAnimation
ANIMATIONS = [
# [AnimationID, X, Y, loop],
[ 1, 272, 208, true],
[ 2, 10, 10, false],
]
end
#==============================================================================
# ** Sprite_Base
#------------------------------------------------------------------------------
# Edited to include a finished_animation? method
#==============================================================================
class Sprite_Base
#--------------------------------------------------------------------------
# * Alias Methods
#--------------------------------------------------------------------------
def finished_animation?
# Set the finished to true if the animation doesn't exist
return true if @animation.nil?
# Check if the number of frames complete is higher than the furation
is_done = @animation.frame_max >= @animation_duration
return is_done
end
end
#==============================================================================
# ** Scene_Title
#------------------------------------------------------------------------------
# Edited to show an animation
#==============================================================================
class Scene_Title
#--------------------------------------------------------------------------
# * Alias Methods
#--------------------------------------------------------------------------
alias nr_animation_start start unless $@
alias nr_animation_update update unless $@
alias nr_animation_terminate terminate unless $@
#--------------------------------------------------------------------------
# * Start Processing
#--------------------------------------------------------------------------
def start(*args)
# Run the original start
nr_animation_start(*args)
# Create an array of sprites
@animation_sprites = []
# For each sprite
for data in NR_TitleAnimation::ANIMATIONS
# Create the sprite, set its position, and start the animation
animation_sprite = Sprite_Base.new()
animation_sprite.x = data[1]
animation_sprite.y = data[2]
animation = $data_animations[data[0]]
animation_sprite.start_animation(animation)
@animation_sprites << animation_sprite
end
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update(*args)
# For each sprite
for i in 0...NR_TitleAnimation::ANIMATIONS.size
sprite = @animation_sprites[i]
# Update the sprite
sprite.update
# If the animation is finished and its supposed to loop
data = NR_TitleAnimation::ANIMATIONS[i]
if sprite.finished_animation? and data[3]
# Restart the animation
animation = $data_animations[data[0]]
sprite.start_animation(animation)
end
end
# Run the original update
return nr_animation_update(*args)
end
#--------------------------------------------------------------------------
# * Termination Processing
#--------------------------------------------------------------------------
def terminate(*args)
# Dispose the animation sprites
@animation_sprites.each { |s| s.dispose }
# Run the original terminate
return nr_animation_terminate
end
end
#==============================================================================
# ** End of Script.
#==============================================================================