Bounce on enemy to kill only working 80% of the time

LooseMooseLooseMoose Member Posts: 224
edited October 2012 in Working with GS (Mac)
Hi, I have made rules so when the hero collides with the enemy, if player bottom is greater than enemy top, the enemy will die.

This rule works 80% of the time, but sometimes when I jump on an enemy the hero dies and the enemy doesn't, then the game is over. (there is only 1 enemy which has been duplicated, so no missing rules)

I have constrained player bot to. position y - (self size height / 2) +10. so it have 10 pixels to work with which should be enough.

My game is ready for release but this annoying bug is holding it back.

Is there something I should do to avoid this issue? Or is it a known gamesalad bug?

Thanks

Comments

  • LooseMooseLooseMoose Member Posts: 224
    edited October 2012
    My actor has a constant downward acceleration of 1000, so I figure when it collides with the enemy it is moving so fast that it slides over the enemy actor a little bit. therefore making enemy top be greater than player bottom and destroying the hero. I changed the player bottom to +15 pixels from +10. It seems to have done the trick. for now.... haha


    This is the tutorial I used:
Sign In or Register to comment.