fall

Started by hamza, April 25, 2012, 01:45:43 PM

Previous topic - Next topic

hamza

well i want my enemy to fall after he take a number of hitcounts or a damage

my webpage
www.csmugen.ucoz.com

Rajaa Retired

[state 200, Light Punch]
type = hitdef
trigger1 = numenemy
fall = enemynear,gethitvar(hitcount) >= ##
or
fall = enemynear,gethitvar(damage) >= ##

hamza

#2
sorry i meant in more moves like in a combo when the enemy takes a number of hits the enemy falls

my webpage
www.csmugen.ucoz.com

Cyanide

Rajaa's code will still work for fall based on hitcount. Damage not so much.

Fall = enemynear, gethitvar(hitcount) > 3

That will be the same as

fall = 1

if you have hit the enemy 3 times. It will evaluate to fall = 0 if you have hit them less than 3 times. Try it please.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

Rajaa Retired

Oh, I wasn't thinking in terms of accumulated damage for that damage code. =p

hamza

thanks it worked   ;D

my webpage
www.csmugen.ucoz.com