# Platform game

**URL:** https://forum.kirupa.com/t/platform-game/13607
**Category:** flash
**Created:** [February 15, 2003, 12:42pm UTC](https://forum.kirupa.com/t/platform-game/13607 "2003-02-15T12:42:33Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![DMX](https://avatars.discourse-cdn.com/v4/letter/d/898d66/32.png) [@DMX](https://forum.kirupa.com/u/DMX)
#### Post date: [February 15, 2003, 12:42pm UTC](https://forum.kirupa.com/t/platform-game/13607/1 "2003-02-15T12:42:33Z")

</div>

Hi,🙂 I have a problem im making an rpg (role playing gAME)  
so far all I have made is a chracter who is movable. I would like this character to be able to jump, when i Tried it I couldnt Get HiM baCk DoWn again. any HeLp iS aPpreciated. thanks alot.🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 22, 2003, 11:46am UTC](https://forum.kirupa.com/t/platform-game/13607/2 "2003-02-22T11:46:50Z")

</div>

can anyone help?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 22, 2003, 2:37pm UTC](https://forum.kirupa.com/t/platform-game/13607/3 "2003-02-22T14:37:50Z")

</div>

What AS are you using to make him jump in the first place? If you store his \_y coord as he starts to jump then you could use something along the lines of

onClipEvent(enterFrame){  
if (\_y-storedY\>0) {  
\_y+=gravity  
}  
}

where storedY is the initial value and gravity is the rate of change in the y axis

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 20, 2003, 10:59am UTC](https://forum.kirupa.com/t/platform-game/13607/4 "2003-03-20T10:59:11Z")

</div>

Hey DMX did you sort this problem out because I also made a complete platform game with jumps, loss of health bar, life gain etc, so if I can help in any way let me know.

I’m off for lunch now but I’ll be back at 1.30pm.

99 posts and counting :bandit:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 21, 2003, 4:10pm UTC](https://forum.kirupa.com/t/platform-game/13607/5 "2003-03-21T16:10:18Z")

</div>

no im afraid i havent yet … i would really appreciate it if you could help me in any way chris.🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 21, 2003, 4:40pm UTC](https://forum.kirupa.com/t/platform-game/13607/6 "2003-03-21T16:40:46Z")

</div>

Hi DMX,  
I hope you are using flash 5 if so here is the makings of a platform game as promised.

let me know if you have any problems
