Best method to score jumping over something
Hi all
I wanted to find out the best way of having your Hero actor score points if they jump over a moving obstacle, which on contact will kill them but if they jump over it, they score points. I've tried a couple of methods that have failed.
If you think like a Mario game, but one where if Mario jumps on top of the enemy, he dies, not kills it - so jumping over it, is the only way he can score points.
thanks!
Comments
bump
Constrain a taller (tall enough to accommodate the range of the hero's jump) actor to the obstacle so it acts like a detector to see if anything has passed through this area.
When the hero collides with the obstacle = death.
Otherwise if the hero collides with the detector = points.
Quick example file . . . space bar to jump, left right to move.
If you hit the obstacle (pink) you get a 'X'
If you clear the obstacle (and pass through the green area) you get a '✓'
This is the basic idea, using a detector, but you would need to set it up properly.
thanks socks. I was thinking that this was the only way.