# Jump Physics, Codes

**URL:** <https://forum.kirupa.com/t/jump-physics-codes/326492>\
**Category:** flash\
**Created:** [December 18, 2011, 4:11pm UTC](https://forum.kirupa.com/t/jump-physics-codes/326492 "2011-12-18T16:11:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raphaelle](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@raphaelle](https://forum.kirupa.com/u/raphaelle)\
**Post date:** [December 18, 2011, 4:11pm UTC](https://forum.kirupa.com/t/jump-physics-codes/326492/1 "2011-12-18T16:11:36Z")

</div>

Hello everybody,

Please help me with a jump function to my char.

im creating a side scroller game, platform game.

but i dont know how to fix this.

[ralph\_spoon@yahoo.com](mailto:ralph_spoon@yahoo.com)

thats my email,  
please help me. i know how gravity works, but the jump code.(im stupid in this thing)

what happen is when im in another boundary, i cant jump anymore.

if(heroMale.y \< boundaries.y)  
{  
jump = false;  
}

if(heroMale.y \> boundaries.y)  
{  
jump = false;  
}

thhanks in advance !!!

cheers,  
raphaelle
