Actor Stunned mullet after taking damage?

craziwolfcraziwolf Member Posts: 6
edited June 2012 in Working with GS (Mac)
In the game I have been developing the enemy actor gets pushed back when struck by player actor. It does not die because I gave each enemy hit points but when it is hit the first time it stops perusing the player.

Any help would be appreciated!

Answers

  • fadamionfadamion Member, PRO Posts: 309
    I had something just like this i think i added a boolean to tell it when and when not to move. How are the moving your actor?
  • MotherHooseMotherHoose Member Posts: 2,456
    @craziwolf … the collideBehavior stops the motion/pursuit

    on enemyActor prototype:
    - delete the collideBehavior
    - add attribute … index type … name: maxHits = number of hits for this enemy

    Rule: when
    Event: overlaps or collides with actor of type: player
    - changeAttribute: self.maxHits To: self.maxHits-1
    - Interpolate: self.Position.X To: self.Position.X+100 Duration: 0.1)
    Otherwise:
    Rule: when
    Attribute: self.maxHits > 0
    - pursue behaviors
    Otherwise:
    - destroyBehavior … or the deadEnemy stuff

    @};- MH
  • ChobbifaceChobbiface PRO Posts: 491
    Mullet?!
    image
    hee hee hee.. I am also wondering the same question

  • MotherHooseMotherHoose Member Posts: 2,456
    =)) oh my achy,breaky heart!

    image MH
Sign In or Register to comment.