Velocity collides destroys actor?

djmoyadjmoya Member Posts: 16
edited November -1 in Working with GS (Mac)
How do i make it so if a wall is knocked ontop of actor with a certain velocity it will hurt or destroy the actor?
But the actor can touch the wall anytime with no harm besides it falling on it with so much force?

Comments

  • BrynjeBamsenBrynjeBamsen Member Posts: 188
    Create a new game boolean attribute called Velocity

    Go to your wall actor.
    Creat new rule : set it to ANY

    IF attribute self.motion.linear.X is Greater then (what ever speed you want)
    IF attribute self.motion.linear.y is Greater then (what ever speed you want)

    Change attribute game.velocity to true

    On your other actor getting wall in his face.
    Create new rule: ALL
    IF game.velocity is true

    Destroy

    Change attribute to false (so it resets for life 2 maybe)
Sign In or Register to comment.