# Mario-Type Bounce

**URL:** <https://forum.kirupa.com/t/mario-type-bounce/251497>\
**Category:** programming\
**Created:** [February 9, 2008, 1:02am UTC](https://forum.kirupa.com/t/mario-type-bounce/251497 "2008-02-09T01:02:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cocoapuff](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@cocoapuff](https://forum.kirupa.com/u/cocoapuff)\
**Post date:** [February 9, 2008, 1:02am UTC](https://forum.kirupa.com/t/mario-type-bounce/251497/1 "2008-02-09T01:02:37Z")

</div>

For the basis of my script I used the **[Create A Platform Game\*\* tutorial. For the most part, I left the code the same. Although I did make one pretty big change. The original script included a gun. To kill the enemy you had to pick up the gun and shoot it. Instead of doing that, I put the \*\*[URL=“http://www.kirupa.com/forum/…/developer/mx2004/platform\_game4.htm”]attackpoint](http://www.kirupa.com/forum/../developer/mx2004/platform_game.htm)** on the bottom of the character. So now when you jump on the enemy, it dies (mario style).

Now knowing that information, my question is:  
How can I make the character bounce in the air after jumping on an enemy?  
 ![](http://img158.imageshack.us/img158/5681/34246618vh4.png)
