Chaos Project

RPG Maker => Tutorials => Tutorial Requests => Topic started by: [Faint] on January 26, 2010, 12:17:12 pm

Title: RMXP Battle animation movement
Post by: [Faint] on January 26, 2010, 12:17:12 pm
How would you go about making skill animations lets say for a skill that shoots a wave of energy at a foe, actually move from the caster to the target?
Title: Re: RMXP Battle animation movement
Post by: Lore on January 26, 2010, 01:24:55 pm
All right, this is simple, but can be complicated at some parts.

First, you create an animation for the caster, so begin the bolt of energy. Then, make the bolt travel to the very top of the window where you make the animation.
Make another animation and call it part 2 or something, begin the bolt at the very bottom of the window, with the same graphic and lead it to the enemy and make the explosion or whatever.

Part 1 should go under the "Caster Animation" and Part 2 should go under "Target Animation" when you make the skill.
Part 1 should logically connect with part 2, so it doesn't look choppy, which is why I said begin with the same graphic.

Do you understand or would you like a picture?
Title: Re: RMXP Battle animation movement
Post by: Aqua on January 26, 2010, 01:33:16 pm
Lore's post assumes you're using the DBS...
Are you? D:
Title: Re: RMXP Battle animation movement
Post by: Lore on January 26, 2010, 01:46:04 pm
Quote from: Aqua on January 26, 2010, 01:33:16 pm
Lore's post assumes you're using the DBS...
Are you? D:


Technically, if he was using a side view battle, or an Action Battle System, he could still use this method.
I believe Blizz-ABS would register the two animations, and if he was using a side view battle system, he could just do this same method, except out the side.
Title: Re: RMXP Battle animation movement
Post by: [Faint] on January 26, 2010, 02:13:58 pm
I am using a sideview, also yes a picture would be nice :^_^':
Title: Re: RMXP Battle animation movement
Post by: Lore on January 26, 2010, 04:11:01 pm
I'll have to do it a bit later, I need to study for my math exam which is tomorrow.
Title: Re: RMXP Battle animation movement
Post by: [Faint] on January 27, 2010, 07:02:25 pm
Ok thanks
Title: Re: RMXP Battle animation movement
Post by: Calintz on January 28, 2010, 12:17:37 am
I actually don't believe that there is a sure fire way to make the attack appear as though it's coming from the player, and moves from him to a specified enemy. That just isn't the way the animation system works. It isn't a point A to point B system. They work as frame by frame on a solid point, and with different X and Y values differing by each enemy, so if you were to make a skill travel to the bottom to strike an enemy, it would still travel to the bottom and strike that same one even if you attack a different enemy.
Title: Re: RMXP Battle animation movement
Post by: Lore on January 28, 2010, 02:36:28 am
Hm, I tested it myself, and what Calintz says holds true. It does only travel in that path mentioned.

I'm sorry, it appears my tutorial only works for the Default Battle System.
Maybe you should see if your battle system has any configurable features in the script regarding your problem?
Title: Re: RMXP Battle animation movement
Post by: Calintz on January 28, 2010, 03:26:32 am
To make this work, I think someone who can modify scripts is in order.
I would suggest making a maximum of three enemies per line... something like this...

X
                                     X
X     < enemies  heroes>     X
                                     X
X

Or, if you had say six enemies...etc.

X X
                                     X
X X  < enemies  heroes>     X
                                     X
X X

Then, you would have to make sure you follow these guidelines for every troop of enemies you use in your game. Make the middle hero's y-coordinate equal to the middle enemy's y-coordinate in the troop set up tab in your database. Make the other two heroes' coordinates no more than 10-15y above or below the middle hero. When placing enemies, make sure that the top and bottom enemies are spaced about 25-50y above or below your middle hero. You will need to make three separate animations for your wave. Make the animation begin in front of the main character no matter who is using it(unless you wanna make 12separate animations per wave skill) and have each one travel to a different enemy location.

Have someone modify your battle script to check the enemies' coordinates along with the current actors. Depending on which row the enemy is in(high, middle, or low as determined by his coordinates) a script can either turn on one of three switches, or store a fixed number into a variable. Either of which can be used within your database to change the animation to the one you need.

That's how I would do it, but I can't script.
Title: Re: RMXP Battle animation movement
Post by: [Faint] on January 28, 2010, 10:36:34 am
I will have to look into that but thank you. Now do you think it would be possible doing it with the sprite sheet if I am using mink's animated? I know that you can have the character move to the enemy location when attacking so do you think it would be possible to just make an animation for a skill this way?
Title: Re: RMXP Battle animation movement
Post by: Calintz on January 28, 2010, 04:31:47 pm
Maybe...I'm using the same script, but into the separate skill stuff yet.
It might be possible, but at first glance of the script it looks like you will still need to use some kind of handler.

Besides, if that is a route you wanna take, that spriteset will be huge, because you will need to keep the player in the frame as it constantly gets larger as the wave heads towards the enemy, or the player will disappear from the screen.

Personally, I would give up on this. It's a simple aesthetic is un-necessary. If you find a sure-fire way to do this let me know, but it looks like some serious edits would need to be made for this to work, and I don't have the scripting knowledge to do it.
Title: Re: RMXP Battle animation movement
Post by: [Faint] on January 28, 2010, 07:08:32 pm
Well I plan on looking into it and if I find out anything I will let you know. 8) Where there is a will there is a way ;)
Title: Re: RMXP Battle animation movement
Post by: Calintz on January 28, 2010, 07:40:27 pm
I certainly agree...
I'm just saying that I think in order to do this will need to make some kind of simple mod to Minkoff's script, and I can't do that myself, so I can't really hope to succeed. I can't think of a way to do this without using a script to check the enemies' coordinates and load a different animation based on that information.
Title: Re: RMXP Battle animation movement
Post by: [Faint] on January 28, 2010, 07:48:32 pm
yeah thats what I plan on looking into, since I know a bit about scripting.
Title: Re: RMXP Battle animation movement
Post by: Calintz on January 28, 2010, 07:53:02 pm
I wish you the best Faint.
Title: Re: RMXP Battle animation movement
Post by: [Faint] on January 28, 2010, 07:58:20 pm
Thanks and like I said whatever I figure out Iwill pass along.