The Daily Click ::. Forums ::. Klik Coding Help ::. fighting...platform(mmf2) ▲▲▲
 

Post Reply  Post Oekaki 
 

Posted By Message

Xio



Registered
  21/01/2008
Points
  218
12th March, 2008 at 16:11:09 -

now...I'm making a game( i posted something like this b4 ) that is a fighting adventure platform...i tried many ways for the active ( lets call him a knight because thats what he is ) with a counter so when he tries to hit a monster it wont subtract against the counter but when he does get hit and he isn't attacking it subtracts against the counter...i tried if animation is playing ( slash, slash walking, slash falling & jumping ) kill monster, and i negated that to make it
if animation blah blah blah subtract 1 form counter...but it didn't work so then i tried when animation stopped walking falling and jumping is playing and collides with monster it will subtract form counter and vise versa. But no good so...Help?

 
Squigy my blob

maker of music
8-bit music though

gozial



Registered
  02/03/2008
Points
  24

Has Donated, Thank You!
12th March, 2008 at 17:21:21 -

I'm not as advanced as today's programmers.

Maybe the animations for stopped, walking, falling and jumping have to be looping? If it's looping, I don't know what the problem is

Think maybe those conditions for getting hit should be separate. "When animation stopped is playing, collide with monster, subtract from counter", when animation walking, collide with monster, subtract from counter etc as seperate conditions would work or have you tried it but it didn't work.

I think creating new objects on anything work well as collisions. Could create a collision box everytime they attack on the attack animation.


 
n/a

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  531

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
12th March, 2008 at 17:49:49 -

I'm not 100% I understand the problem, but try using detectors(Invisible Active objects) instead of an animation for subtracting from the counter. I find that using animations in events can sometimes get a bit iffy.

Image Edited by the Author.

 
Image

Tell 'em Babs is 'ere...

-MacAdaM-

Megaman Fosho

Registered
  12/02/2008
Points
  560
13th March, 2008 at 15:00:15 -

what i would do is a lot easier, after the attack animation (any of them) create a active object at the end of his sword or whatever, and if the monster gets hit with the active at the end of the sword then destroy the monster (or add to a value or whatever) then after the objects animation is over destroy that (i think this is what you were trying to do..)

 
Your just jealous that you're not as awesome as me.
(And my megaman avatar )

Xio



Registered
  21/01/2008
Points
  218
13th March, 2008 at 16:18:33 -


Originally Posted by MacAdaM
what i would do is a lot easier, after the attack animation (any of them) create a active object at the end of his sword or whatever, and if the monster gets hit with the active at the end of the sword then destroy the monster (or add to a value or whatever) then after the objects animation is over destroy that (i think this is what you were trying to do..)




woo hoo! man i love the daily click i wud make box games :| check my other game


http://www.youtube.com/watch?v=HBal1JbM1zo

 
Squigy my blob

maker of music
8-bit music though
   

Post Reply



 



Advertisement

Worth A Click