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
> [VX Snippet] Auto-Repeat Animation, * Repeat animation on character in map~ *
woratana
post May 21 2008, 09:15 PM
Post #1


Looking for scripter to hire? PM me *O*
Group Icon

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




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
Attached File  VX_Autorepeat_Anim10.txt ( 1.64K ) Number of downloads: 234




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?


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
alucart13
post May 22 2008, 12:11 PM
Post #2


Level 1
Group Icon

Group: Member
Posts: 12
Type: Event Designer
RM Skill: Masterful




Nice job.

But may I ask what you could use it for?
Go to the top of the page
 
+Quote Post
   
YanXie
post May 22 2008, 12:24 PM
Post #3


Because Tomorrow Will Surely Come...
Group Icon

Group: Revolutionary
Posts: 1,137
Type: None
RM Skill: Skilled




This script will enable animation to loop when used on map.

cheers,puppeto4. smile.gif


__________________________
how make teleport to graveyard then your character die?

AWAY FOR VACATION.
NOT HERE UNTIL JAN/FEB 2010 -w-/
Go to the top of the page
 
+Quote Post
   
SojaBird
post Jun 12 2008, 04:09 PM
Post #4


Level 51
Group Icon

Group: Revolutionary
Posts: 1,573
Type: Scripter
RM Skill: Advanced




Oke seems nice but why would you want to loop an animation actualy...just a question, no offence?


__________________________
Art from the highest shelf?

Scriptology, scripting podcast



HUD's Request Lobby (multiple hud-scripts)


------------------------------------------------------------------

Random Stuff
OMG, it's Hab!!


This is a crazy drawing application! (by me)

How did I learned to script
QUOTE
Hey pim! I'm the Law G14!

For the past couple of months I've been learning RGSS and I've got the basic stuff down such windows, variables, conditional statements, ect. But, I can't see myself making big scripts such as a jumping system or a side view battle system. I was wondering how you learned to script because I really want to know how to script really well.

Thanks in advance.


Hey there,

Well I don't make battle neither though I can still teach you some things :)...
The way I've learned to script is by reading other scripts for the most part.
I've allways been interested in other peoples work but this time I though I had to try to make something myself...and it worked!!
The most importand thing when you go scripting is (at least in my case) that you want to make something to help an other wich can't script.
You also need to feel the competition that's around in the scripting-community.
Cause, I have to say, if you get pushed to get a sertain request done before an other scripter does, you feel POWERFULL!! :P
So that's an other thing...
You also don't need to be afraid to learn from others or helpfiles.
When I write my scripts, I actualy always have the helpfiles open to look things up I don't know or remember.
Then, you must be calm, cause you need to try the script a lot of times.
When I write a script, I test it after almost every changes.
First I set up the major structure.
Like when I make a window-script or part of a script I start with something like this:
CODE
class Window_Name < Window_Base
def initialize(x,y,width,height)
super(x,y,width,height)
refresh
end

def refresh
self.contents.clear
draw_contents
end

def draw_contents
draw_something(with, some, parameters)
end

def update
refresh if @something != @what_it_should_be
end
end
So that's also very important.
Then, the biggest thing I learned scripting from is TRIAL AND ERROR.
That's the most irritating way to learn something, cause it's more ERROR than TRIAL, but it does the trick realy good.

So that's it how I did it.
Now it's up to you.
Do some requests (if I didn't do it allready :P) and learn from them.

Hope that helped you out a little.
If not, keep your eye on the Scriptology-topic (see my sig) where I'll be updating for my scripting(video)tutorials.
Perhaps they're going to be usefull for you one day ;)


Greatzz,
SojaBird.
Go to the top of the page
 
+Quote Post
   
woratana
post Jun 12 2008, 04:43 PM
Post #5


Looking for scripter to hire? PM me *O*
Group Icon

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




For example, you can use this in ABS by repeat animation on player/enemy depends on the state they has.


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
sandy
post Jun 12 2008, 07:50 PM
Post #6


Level 17
Group Icon

Group: Revolutionary
Posts: 329
Type: None
RM Skill: Undisclosed




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.


__________________________
RPG Maker VX Resources - Blogthing updated daily with new stuff you can use
Temporarily not be updated daily. My bad!
Go to the top of the page
 
+Quote Post
   
SojaBird
post Jun 12 2008, 11:15 PM
Post #7


Level 51
Group Icon

Group: Revolutionary
Posts: 1,573
Type: Scripter
RM Skill: Advanced




yea cool thats indeed pretty handy...thanks for tips smile.gif nice work wora


__________________________
Art from the highest shelf?

Scriptology, scripting podcast



HUD's Request Lobby (multiple hud-scripts)


------------------------------------------------------------------

Random Stuff
OMG, it's Hab!!


This is a crazy drawing application! (by me)

How did I learned to script
QUOTE
Hey pim! I'm the Law G14!

For the past couple of months I've been learning RGSS and I've got the basic stuff down such windows, variables, conditional statements, ect. But, I can't see myself making big scripts such as a jumping system or a side view battle system. I was wondering how you learned to script because I really want to know how to script really well.

Thanks in advance.


Hey there,

Well I don't make battle neither though I can still teach you some things :)...
The way I've learned to script is by reading other scripts for the most part.
I've allways been interested in other peoples work but this time I though I had to try to make something myself...and it worked!!
The most importand thing when you go scripting is (at least in my case) that you want to make something to help an other wich can't script.
You also need to feel the competition that's around in the scripting-community.
Cause, I have to say, if you get pushed to get a sertain request done before an other scripter does, you feel POWERFULL!! :P
So that's an other thing...
You also don't need to be afraid to learn from others or helpfiles.
When I write my scripts, I actualy always have the helpfiles open to look things up I don't know or remember.
Then, you must be calm, cause you need to try the script a lot of times.
When I write a script, I test it after almost every changes.
First I set up the major structure.
Like when I make a window-script or part of a script I start with something like this:
CODE
class Window_Name < Window_Base
def initialize(x,y,width,height)
super(x,y,width,height)
refresh
end

def refresh
self.contents.clear
draw_contents
end

def draw_contents
draw_something(with, some, parameters)
end

def update
refresh if @something != @what_it_should_be
end
end
So that's also very important.
Then, the biggest thing I learned scripting from is TRIAL AND ERROR.
That's the most irritating way to learn something, cause it's more ERROR than TRIAL, but it does the trick realy good.

So that's it how I did it.
Now it's up to you.
Do some requests (if I didn't do it allready :P) and learn from them.

Hope that helped you out a little.
If not, keep your eye on the Scriptology-topic (see my sig) where I'll be updating for my scripting(video)tutorials.
Perhaps they're going to be usefull for you one day ;)


Greatzz,
SojaBird.
Go to the top of the page
 
+Quote Post
   
vietanh2108
post Feb 4 2009, 11:28 PM
Post #8



Group Icon

Group: Member
Posts: 2
Type: None
RM Skill: Undisclosed




It Great for make Character.
Can you covert it to RMXP ,please! I Have Problem to covert in Line :"@animation_duration > 0".%_%

Thanks^^!!
Go to the top of the page
 
+Quote Post
   
Versus_Shin
post Sep 20 2009, 03:36 PM
Post #9


Level 2
Group Icon

Group: Member
Posts: 28
Type: Developer
RM Skill: Advanced




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?


__________________________
- BLOGSHIN -
RPG Maker Resources
Go to the top of the page
 
+Quote Post
   
platipus
post Sep 20 2009, 08:13 PM
Post #10


Level 11
Group Icon

Group: Revolutionary
Posts: 191
Type: Event Designer
RM Skill: Skilled




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.


__________________________
using xp now and will continue to until a better rpg maker
Go to the top of the page
 
+Quote Post
   
PKPwnr
post Nov 14 2009, 09:22 PM
Post #11


Level 1
Group Icon

Group: Member
Posts: 12
Type: Mapper
RM Skill: Beginner




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

Go to the top of the page
 
+Quote Post
   
exiost
post Apr 18 2010, 05:07 AM
Post #12


Level 2
Group Icon

Group: Member
Posts: 18
Type: Developer
RM Skill: Beginner




how to stop the repeat animation?


__________________________
Go to the top of the page
 
+Quote Post
   
woratana
post Apr 19 2010, 11:25 AM
Post #13


Looking for scripter to hire? PM me *O*
Group Icon

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




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

Read the instruction please~ wink.gif


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
andr33ze
post Apr 28 2010, 05:14 PM
Post #14



Group Icon

Group: Member
Posts: 2
Type: None
RM Skill: Undisclosed




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 post has been edited by andr33ze: Apr 28 2010, 05:28 PM
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: 20th May 2013 - 01:35 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker