PDA

View Full Version : Turn Based Battle??



TrapHole_2032
July 12th, 2005, 02:10 AM
Err...
Can someone give me a tutorial (or if you can't, just a .fla) about how to make turn based battles like in pokemon red/blue/yellow/gold/silver/crystal/diamond/ruby?
You know, when there are options like fight, item, run, and all that? And then you take turns to battle..

:cons:

Thanks before,
TrapHole_2032

Templarian
July 12th, 2005, 02:21 AM
Just use a movieclip with buttons in it saying fight and stuff then when the button is pushed gotoAndPlay the movieclip thats over the attacking unit that blinks showing slash marks, on the last frame in that movieclip put the code that tells the unit to gotoAndPlay the scratch mark movieclip thats over your unit and also have it do the subtract code on the last frame of that. (longest run on scentence lol). Then on that same frame at the end of the scratch movieclip have it tell the box with the options to show back up if your unit and the attacker still have health above 0.
I dont think theirs a tutorial for this exact thing, but thats the basics.

(my game runs off the same thing sort of, a bit more advanced though, but same basic thing)

nathan99
July 12th, 2005, 03:05 AM
i made these a while ago for someone else;
http://www.kirupa.com/forum/attachment.php?attachmentid=24102 -- SWF
http://www.kirupa.com/forum/attachment.php?attachmentid=24101 -- FLA

i have a more updated one with upgrades etc.., either e-mail,post here and ill try an zip it to get it up, or if u have msn add me if you want it.

SeiferTim
July 12th, 2005, 10:06 AM
Death Olives!
Awesome!

Yeah, all you really need to do is to make some kind of menu, and have each button play a different Movie Clip, which has a different damage algorythm...and have the opponent simply 'randomly' choose an attack to use. Not too hard to get the basic code down, the beauty is in the way you design it. Pokémon had a nice touch by making it look like you were standing at your Monster's shoulder when you were fighting.

error0024
January 7th, 2006, 07:19 AM
wow nice swf i needed that : D

nathan99
January 7th, 2006, 08:16 AM
Death Olives!
Awesome!

Yeah, all you really need to do is to make some kind of menu, and have each button play a different Movie Clip, which has a different damage algorythm...and have the opponent simply 'randomly' choose an attack to use. Not too hard to get the basic code down, the beauty is in the way you design it. Pokémon had a nice touch by making it look like you were standing at your Monster's shoulder when you were fighting.


haha didnt see this reply, i had already done one way back then lol here what it was, dnt blame me if the codes not awesome, havent looked at it since then lol

NińoScript
January 7th, 2006, 10:13 AM
the poison potion works like a strong attack?
if you have no potion left, u get stuck in the potion menu?


:lol:

ilikepataters
June 20th, 2006, 03:08 PM
does any one have actionscript for how to make your enemy choose their own move? thx :D

InfestedDemon
June 20th, 2006, 03:15 PM
i made these a while ago for someone else;
http://www.kirupa.com/forum/attachment.php?attachmentid=24102 -- SWF
http://www.kirupa.com/forum/attachment.php?attachmentid=24101 -- FLA

i have a more updated one with upgrades etc.., either e-mail,post here and ill try an zip it to get it up, or if u have msn add me if you want it.
nathan mad eit for me orginially, it really helped on my road to...uh....road to nowhere as my project still goes on and on.... lolz

woad
June 20th, 2006, 04:45 PM
Ilikepatapeters look at the AI sticky at the top of this forum, I rember seeing something about that in one of the links.

EDIT:: Ok I fixed the problem about when there's no potions you're stuck in the menu. All you had to do was create a new button and add a little code to it.

http://www.filefactory.com/?50faea (http://www.filefactory.com/?50faea)

kprime
July 3rd, 2006, 11:42 PM
This is nice. At least I have something to work on