Posted By
|
Message
|
Gongashplei
Registered 02/01/2002
Points 164
|
9th July, 2003 at 09:19:49 -
Ok, so I'm making this game right? Suddenly I decided to put in the ability to perform a 3 hit slash... but my method does not work... any ideas?
At the moment i'm making it you press the attack key to perform the regular slash... when you press the key again while the animation is playing, it turns on a flag, so if the flag is on when the animation finishes, it goes on to the second slash... but its not working... i havent tried the 3rd slash yet, but whenever i press the attack key once, it plays both slashes, as if i had pressed it twice. anyway.. im sure somebody can think up a smarter way to pull it off. thankyou for your time!
Gongashplei- Now celebrating a year of membership with no DC points!
|
Mr Saturn
Registered 14/05/2002
Points 357
|
9th July, 2003 at 09:35:28 -
Well that sounds like it should work. Make sure you don't have "repeat when key is pressed", because that could cause the problem you are describing.
n/a
|
RapidFlash Savior of the Universe
Registered 14/05/2002
Points 2712
|
9th July, 2003 at 10:41:10 -
If you have MMF, make it whenever you press "Attack" to add an "A" to the alterable string (found in a regular string). Then you do
Alterable String of string = "AAA" ---> Set alterable sring of string to ""
Do (3 slash combo necessities)
Don't forget this:
Every 1'50 (or so): ---> Set alterable string of string to ""
Hope that helped.
http://www.klik-me.com
|
Mitch M Possibly Insane
Registered 09/02/2003
Points 2472
|
9th July, 2003 at 12:07:40 -
You can also make a place outside the screen and then when you hit space (example):
create "space" there + set space value to 2..
Every 1 sec + "space" value is 0>: Substract 1
value = o: Space destroy...
This with 2 other attack objects..
"space" collisions/overlaps etc "other attacks": Combo move
Never tried this but it sounds workable...
http://www.cysteine.tk/
|
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
|
9th July, 2003 at 20:44:44 -
You could do what RapidFlash said, but use the alterable value of the player, and add one to it everytime you press attack. Then use another alterable value for the countdown.
So when you press attack, set alt b to 2.
Every 1 second - subtract 1 from alt b.
Alt b = 0 - set alt a to 0
-Andy
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
|
RapidFlash Savior of the Universe
Registered 14/05/2002
Points 2712
|
10th July, 2003 at 12:18:56 -
Well, for that combo Assault Andy's method is better, but if you ever do a MK type fighting game (e.g. Down Right Punch), use my method (if you want I can send you an example).
http://www.klik-me.com
|
Gongashplei
Registered 02/01/2002
Points 164
|
11th July, 2003 at 02:35:23 -
cheers guys, andy's method should do for now, but i am still interested in an example if you wouldnt mind sending one Rabid. Thanks a lot.
Gongashplei- Now celebrating a year of membership with no DC points!
|
Rycon
Registered 20/09/2002
Points 996
|
14th July, 2003 at 15:17:31 -
The reason your first method did not work, is that TGF has some sort of problem with the keys. Everything seems to happen TOO fast when hitting a key. For example, if you want a menu to come up when you press escape, you would think to do it like this.
Menu is invisible
Keyboard presses escape = make menu visable
menu is visable
keyboard presses escape = make menu invisable
Think it would work? it doesent. Or it didnt for me, I tryed everything, flags, counters, nothing. It may be because of the complex stuff I had running in background, but if it doesent work then.. its useless.
We are the music makers, we are the dreamers of dreams...
|
RapidFlash Savior of the Universe
Registered 14/05/2002
Points 2712
|
15th July, 2003 at 10:29:34 -
It's out. Just find the *improved* DR Punch Special Move Engine (I'm thinking about adding crouching and some other stuff to it, though) in the downloads.
http://www.klik-me.com
|
|
|