How do I make jump movement?

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

Like this?

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

http://flex.funkyolive.com/test/newgamedemo2.html

Yes Exactly!!!

Bauwermeister

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.

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

My email address is in my footer. Replace at with @ and dot with .

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

Olives at funkyolive.com

Have to run!!

Will be back tommorow

BUT Thanks anyways for your help so far.
SEE YA

Bauwermeister

:slight_smile:

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?

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.

I deleted the other post.

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

pom :cowboy:

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

Here is the FLA
Thanks

Bmeister