HOW DO I MAKE A CHARACTER JUMP
- Fargate
-
Fargate
- Member since: Oct. 30, 2002
- Offline.
-
- Forum Stats
- Member
- Level 09
- Blank Slate
1. How do I make a character perform actions such as jumping. What script do I need???
2. Is there a way to create limits, so your character doesn't run of the screen.
Any help would be much appreciated
~Fargate
- iop321
-
iop321
- Member since: Sep. 21, 2002
- Offline.
-
- Forum Stats
- Member
- Level 13
- Blank Slate
OK, this is a really gay way of doin' it but it may be of help.
I gather you already know keyboard movement. A simple trick is to have your char as a movie clip. Set it so a when the jump button is hit, they do there jumping animation. You will find that you are still able to control it with the keyboard movement commands.
the trouble with this is that you char wond be able to jump to a higher platform.
As for the limits, check out www.spoono.com.
look thru there keyboard control tutourial and youll find it has a part about limits.
I bet you anything there is a better way of doing it though ;)
- Mr-Y
-
Mr-Y
- Member since: Apr. 28, 2000
- Offline.
-
- Forum Stats
- Member
- Level 38
- Blank Slate
Yeah, KINGCODY's idea is not bad, but I think you can also imput some quadratic formula in... People might have done that. I'm not sure... this may be a little complicated. Na... I don't think that will work either... I donno then.
- Wormtail
-
Wormtail
- Member since: Apr. 1, 2001
- Offline.
-
- Forum Stats
- Member
- Level 13
- Blank Slate
1.
onClipEvent (enterFrame) {
if (Key.isDown(Key.UP) {
+move;
}
}
Something like that...I am not sure.

