how do i make a guy bounce off an enemy after jumping on it? (similar to the mario games) when i try doing it the enemy dies but my character just falls through. im using a platform movement...
I created a square what is in up corner of screen. Its always the same place where player is, so: Player jumps on enemy, destroy, the enemy is destroyed, player looks in the direction of square at 0.0 and set speed to 15 or something. There is surely easier way duh
Yep, all you gotta do is:
*Bottom Tester collides with Enemy
+Jump Counter = 0 (well, with my engine 0 = falling)
=Destroy enemy, add 5 to Jump Counter
create a counter
make the characters y = to its own y pos + value of counter.
when character collides with floor counter = 0
when counter is above 0 subtract 1 from it (every tenth of a second)
when character collides with enemy - number from it
and perhaps make a detector to go under the character so it will only bounce when falling