YesNoOk
avatar

How to make special attacks? (Read 467 times)

Started by .-, March 02, 2018, 07:48:29 pm
Share this topic:

.-

How to make special attacks?
#1  March 02, 2018, 07:48:29 pm
  • *
    • Argentina
Like, if p1hits p2 whit a proyectile, then p2 will walk to p1 unable to attack, then p2 is stuning when effect finishs. Also, how to make homing attacks?
Last Edit: March 02, 2018, 08:18:39 pm by Elisyan Aboru
Re: How to make special attacks?
#2  March 02, 2018, 08:12:33 pm
  • ****
  • Still lurks regularly, but posts once a blue moon
    • Canada
For your first part, see the HitDef sctrl; more specifically, the p2stateno parameter.  You can use that for force p2 to read your character's states.

To make things homing, you will want to modify the velocity of your character or projectile to move based on the relative position of your opponent.
P2BodyDist may be a helpful trigger here.