Re: I need help coding a playerpush into a power charge statedef
A quick and cheap way would be: adding a clsn attack box around the charging animation of the char, setting an Hitdef in the charging state (with fall=0 and a little x velocity, just to push the opponent away, with no hitsound, no sparks, a little hittime/pausetime.. just play with those values).
You can add an extra "energy field " Explod around the char so it looks like the energy field around him/her can also attack the player. Setting the "energy field" as a Projectile would work too, but the clsn/explod method is cheaper.
Of course that would be like an attack, not just pushing away the opponent.
You may need to set the energy field as Projectile though, if you don't want your character to be touched by other projectiles like fireballs, etc.
But, in my opinion ,that would be really cheap. Usually (like in Kof, Aof or DBZBudokai, etc.) charging should leave the character vulnerable to attacks. But that's fine, if you're making a super-duper-evil char, I guess. This is just an ethical advice, btw.
Last edited by mulambo; 20th March 2017 at 11:25.
check my MUGEN creations at [emanuelepepi.tk]