Help - Search - Members - Calendar
Full Version: [VX Snippet] Auto-Repeat Animation
RPG RPG Revolution Forums > Scripting > Script Submissions > RGSS2-Submissions
woratana
Auto-Repeat Animation
Version 1.0
by Woratana
Release Date: 21/05/2008


Introduction
This is a little snippet that will allow you to set repeat animation on character in map.

Repeat animation will show again and again after the last animation in that character finished~

Enjoy~ laugh.gif


Screenshots
It's not needed, but I have if you want~ tongue.gif



Script
Place it above main
Click to view attachment



Instruction
To set repeat animation to character, call script:
CODE
   set_anim(character, animation_id)


* character: What character you want to set repeat animation?
** -1 for 'Player', 0 for 'This Event', and 1 or more for Event ID
* animation_id: ID of the animation you want to set as repeat animation
** use 0 to remove repeat animation~

For example:
CODE
   set_anim(10, 5)

* Script above will set Animation ID 5 as repeat animation for Event ID 10


Author's Notes
Free for use in your work if credit is included.

Please do not redistribute this script without permission. If you want to post it on any forum, please link to this topic.


Bug Report?
Please give me these informations:
QUOTE
- What is it says in error window?
- When is it get error? (Right after run game, when you choose something, etc.)
- Do you have any other scripts running in your game that may crash with this script?
alucart13
Nice job.

But may I ask what you could use it for?
YanXie
This script will enable animation to loop when used on map.

cheers,puppeto4. smile.gif
SojaBird
Oke seems nice but why would you want to loop an animation actualy...just a question, no offence?
woratana
For example, you can use this in ABS by repeat animation on player/enemy depends on the state they has.
sandy
Pretty awesome & simple idea, wortana. I'll probably end up using this sometime. smile.gif

Other example uses for you guys:
Animated sparkles on an important chest.
Animated lighting effects that follow events around.
Anything to show an area as being somewhat important.
SojaBird
yea cool thats indeed pretty handy...thanks for tips smile.gif nice work wora
vietanh2108
It Great for make Character.
Can you covert it to RMXP ,please! I Have Problem to covert in Line :"@animation_duration > 0".%_%

Thanks^^!!
Versus_Shin
I am using this script but I got a problem.
I am showing a portal with the darkness animation, but, it flickers before it starts the animation again.

Can someone help me out?
platipus
QUOTE (Versus_Shin @ Sep 20 2009, 07:36 PM) *
I am using this script but I got a problem.
I am showing a portal with the darkness animation, but, it flickers before it starts the animation again.

Can someone help me out?


i think u made it appear for a short time.
PKPwnr
Excellent script wora, but why insert a script when you could do this in an event? Like with Darkness/Single:

-Show Animation (Character)
-Wait x frames (depending on length of animation)
-Parallel Process

And you could switch it off by a variable or switch. tongue.gif

exiost
how to stop the repeat animation?
woratana
QUOTE (exiost @ Apr 18 2010, 06:07 AM) *
how to stop the repeat animation?

Read the instruction please~ wink.gif
andr33ze
This is a useful script. However, I was wondering if there were a way
to allow movement while an animation is repeating?

It seems the animations are set by default to 'wait to finish' before you're
aloud to move at all. Which kinda totally narrows down all creative
possibilities for me. Any way this can be adjusted? That'd be hands
down awesome.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.