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.
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;
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.