# How do I make jump movement?

**URL:** <https://forum.kirupa.com/t/how-do-i-make-jump-movement/6235>\
**Category:** Uncategorized\
**Created:** [October 2, 2002, 1:52pm UTC](https://forum.kirupa.com/t/how-do-i-make-jump-movement/6235 "2002-10-02T13:52:37Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bauwermeister](https://avatars.discourse-cdn.com/v4/letter/b/c5a1d2/32.png) [@Bauwermeister](https://forum.kirupa.com/u/Bauwermeister)\
**Post date:** [October 2, 2002, 1:52pm UTC](https://forum.kirupa.com/t/how-do-i-make-jump-movement/6235/1 "2002-10-02T13:52:37Z")

</div>

Hi ,

I am new to Game design.  
I have a Mogli (Junglebook-like) Character that i got to move with the arrow keys on the keyboard.

I want the character to jump (so for example , he must while moving to the right of the “gamearea” , you must be able to hit a key (say for example the “control” key ) and then the character must jump ( go up ) and as soon as the key is released he must obviously come down.

And also how do one set movement speed on any particular movement.

If any one can help , i would really appreciate it.

Cheers  
BauwerMeister

---

<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:** [October 2, 2002, 1:55pm UTC](https://forum.kirupa.com/t/how-do-i-make-jump-movement/6235/2 "2002-10-02T13:55:04Z")

</div>

Like this?

Use right arrow key, up to jump, space to fire  
[http://flex.funkyolive.com/test/newgamedemo.html](http://flex.funkyolive.com/test/newgamedemo.html)

[http://flex.funkyolive.com/test/newgamedemo2.html](http://flex.funkyolive.com/test/newgamedemo2.html)

---

<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:** [October 2, 2002, 2:01pm UTC](https://forum.kirupa.com/t/how-do-i-make-jump-movement/6235/3 "2002-10-02T14:01:54Z")

</div>

Yes Exactly!!!

Bauwermeister

---

<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:** [October 2, 2002, 2:08pm UTC](https://forum.kirupa.com/t/how-do-i-make-jump-movement/6235/4 "2002-10-02T14:08:20Z")

</div>

Do you have a link to the swf so I can see it and know what to advise you. What code are you currently using for the key controls? Also if you are new to games - try visiting my site.

---

<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:** [October 2, 2002, 2:21pm UTC](https://forum.kirupa.com/t/how-do-i-make-jump-movement/6235/5 "2002-10-02T14:21:02Z")

</div>

well , the best i can do is to e-mail the file to you-  
can u post you address to me ?

The Character is not animating yet. I’m just trying to get the funcionality right first.

This is the Script i use on the movieclip. I 'm not even sure whether this is the right way to move a charcacter. , but check it out anyway.

onClipEvent (enterFrame) {  
// the following 2 if statements is my effort in order to do the jumping  
if (Key.isDown(Key.CONTROL)) {  
this.\_root.\_y = this.\_root.y–;

}  
if (Key.isDown(Key.CONTROL)) {  
this.\_root.\_y = this.\_root.y+100;  
}

if (Key.isDown(Key.DOWN)) {  
this.\_y = this.\_y+10;  
gotoAndStop(2);  
}  
if (Key.isDown(Key.UP)) {  
this.\_y = this.\_y-10;  
gotoAndStop(4);  
}  
if (Key.isDown(Key.RIGHT)) {  
this.\_x = this.\_x+10;

gotoAndStop(3);  
}  
if (Key.isDown(Key.LEFT)) {  
this.\_x = this.\_x-10;  
gotoAndStop(5);  
}  
}

Thanks

---

<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:** [October 2, 2002, 2:41pm UTC](https://forum.kirupa.com/t/how-do-i-make-jump-movement/6235/6 "2002-10-02T14:41:58Z")

</div>

My email address is in my footer. Replace at with @ and dot with .  
 ![](http://flex.funkyolive.com/im/cool.gif)

In the mean time I’ll look at your code.

---

<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:** [October 2, 2002, 2:43pm UTC](https://forum.kirupa.com/t/how-do-i-make-jump-movement/6235/7 "2002-10-02T14:43:33Z")

</div>

Olives at [funkyolive.com](http://funkyolive.com)

---

<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:** [October 2, 2002, 2:55pm UTC](https://forum.kirupa.com/t/how-do-i-make-jump-movement/6235/8 "2002-10-02T14:55:33Z")

</div>

Have to run!!

Will be back tommorow

BUT Thanks anyways for your help so far.  
SEE YA

Bauwermeister

🙂

---

<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:** [October 2, 2002, 2:57pm UTC](https://forum.kirupa.com/t/how-do-i-make-jump-movement/6235/9 "2002-10-02T14:57:44Z")

</div>

Ok. The problem is you won’t be able to tell if the character is jumping because it can move in all directions - the character animations stay the same - so it just looks like he’s hovering. Also if could look at your fla - I could get a better understanding.

Is the character going to move in all directions?

---

<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:** [October 2, 2002, 3:02pm UTC](https://forum.kirupa.com/t/how-do-i-make-jump-movement/6235/10 "2002-10-02T15:02:35Z")

</div>

Man, I’m typing away and they slip in before I finish. Ok, maybe next time - hmm it’s funny how d a m n gets censored, but wanker doesn’t.

---

<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:** [October 2, 2002, 5:20pm UTC](https://forum.kirupa.com/t/how-do-i-make-jump-movement/6235/11 "2002-10-02T17:20:07Z")

</div>

I deleted the other post.

And nice games Flex. Did you make tiles for the first one’s background? Looks very good.

pom :cowboy:

---

<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:** [October 2, 2002, 6:02pm UTC](https://forum.kirupa.com/t/how-do-i-make-jump-movement/6235/12 "2002-10-02T18:02:32Z")

</div>

Thanks pom. No they’re not tile based, just regular art - based scrollers.

---

<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:** [October 3, 2002, 7:07am UTC](https://forum.kirupa.com/t/how-do-i-make-jump-movement/6235/13 "2002-10-03T07:07:20Z")

</div>

Here is the FLA  
Thanks

Bmeister
