Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> [RESOLVED] Adding an animation to Scene_Title
Guyver's Bane
post Apr 9 2012, 10:48 AM
Post #1


The Guiding Light
Group Icon

Group: Revolutionary
Posts: 801
Type: Event Designer
RM Skill: Masterful




Well i'm in the midst of updating a certain script and i had a question lol. Is there a way to show a battle animation and define it's coordinates on the title screen?

Or

Have an character set graphic animate itself with its walking animation on the title?

Or

Have several different pictures cycle through themselves to look animated?

This post has been edited by Guyver's Bane: Apr 14 2012, 08:31 PM


__________________________
Characters:

"damned shitty highjacked internet"

Go to the top of the page
 
+Quote Post
   
Night_Runner
post Apr 10 2012, 05:40 AM
Post #2


Level 50
Group Icon

Group: +Gold Member
Posts: 1,520
Type: Scripter
RM Skill: Undisclosed




If you wanted you could just use Originalwij's Map Title script, (Direct Download link).

It lets you have the title screen appear on a map, his demo does a good job showing how it works.

That's if you wanted complete control over it, otherwise I can script one of the other options you mentioned.


__________________________
K.I.S.S.
Want help with your scripting problems? Upload a demo! Or at the very least; provide links to the scripts in question.

Most important guide ever: Newbie's Guide to Switches
Go to the top of the page
 
+Quote Post
   
Guyver's Bane
post Apr 10 2012, 11:15 AM
Post #3


The Guiding Light
Group Icon

Group: Revolutionary
Posts: 801
Type: Event Designer
RM Skill: Masterful




Well i'm looking to add this into my Start_Screen script so if they're an easy fix i'd much rather have that . I'd definitely want the character set one whenever you felt like doing it lol.

This post has been edited by Guyver's Bane: Apr 10 2012, 02:15 PM


__________________________
Characters:

"damned shitty highjacked internet"

Go to the top of the page
 
+Quote Post
   
Guyver's Bane
post Apr 12 2012, 04:22 PM
Post #4


The Guiding Light
Group Icon

Group: Revolutionary
Posts: 801
Type: Event Designer
RM Skill: Masterful




*LE BUMP*


__________________________
Characters:

"damned shitty highjacked internet"

Go to the top of the page
 
+Quote Post
   
Guyver's Bane
post Apr 14 2012, 06:50 AM
Post #5


The Guiding Light
Group Icon

Group: Revolutionary
Posts: 801
Type: Event Designer
RM Skill: Masterful




*BUMP*
If anyone knows a script that loops images to achieve an animation please link me!


__________________________
Characters:

"damned shitty highjacked internet"

Go to the top of the page
 
+Quote Post
   
Night_Runner
post Apr 14 2012, 05:44 PM
Post #6


Level 50
Group Icon

Group: +Gold Member
Posts: 1,520
Type: Scripter
RM Skill: Undisclosed




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.
#==============================================================================


__________________________
K.I.S.S.
Want help with your scripting problems? Upload a demo! Or at the very least; provide links to the scripts in question.

Most important guide ever: Newbie's Guide to Switches
Go to the top of the page
 
+Quote Post
   
Guyver's Bane
post Apr 14 2012, 06:57 PM
Post #7


The Guiding Light
Group Icon

Group: Revolutionary
Posts: 801
Type: Event Designer
RM Skill: Masterful




Hey man it's cool! I kinda guessed you were Imma give this baby a try and i'll let you know what i think.

:EDIT:
Works beautifully man you are awesome without ends!

This post has been edited by Guyver's Bane: Apr 14 2012, 07:05 PM


__________________________
Characters:

"damned shitty highjacked internet"

Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th May 2013 - 06:31 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker