Enemy spinning when struck - need to stop?

craziwolfcraziwolf Member Posts: 6
edited June 2012 in Working with GS (Mac)
At the moment the enemy I have has multiple hit points and a push back effect but after the first hit it just spinns on the spot. Is there any way I can stop this?

Best Answers

  • master200012master200012 Posts: 372
    Accepted Answer
    Constrain the rotation to 0 (or whatever rotation it's at).

    Good Luck!
  • Braydon_SFXBraydon_SFX Posts: 9,273
    edited June 2012 Accepted Answer
    Try this:

    Change attribute self.motion.Angular Velocity to 0...

    You could even wrap it in a timer:

    After 2 seconds (or whatever) run to completion
    Change attribute self.motion.Angular Velocity to 0...
  • master200012master200012 Posts: 372
    edited June 2012 Accepted Answer
    Ohhh...now I understand what you want.

    Yeah go with Brandon_SFX, he's a pro! >:)

Answers

  • craziwolfcraziwolf Member Posts: 6
    Try this:

    Change attribute self.motion.Angular Velocity to 0...

    You could even wrap it in a timer:

    After 2 seconds (or whatever) run to completion
    Change attribute self.motion.Angular Velocity to 0...
    Worked like a charm they have stopped spinning however instead of resuming pursute of the player they act like stunned mullets haha!

    but I have to go to work now so that is a problem for tonight!

    Thanks for all your answers!!
Sign In or Register to comment.