PDA

View Full Version : Trouble with my Flash game: Jumping


godstatic
04-02-2003, 07:04 PM
Okay, I've been working on a project in Flash: I'm remaking Super Mario Bros. Anyway, I've been having trouble making him jump. I tried using an if statement to gradually add to the location of the movie clip, but that just crashed flash over and over again. If anyone has any suggestions, please, tell me.

If it is needed, I can post my code here, although, what I do have doesn't work at all.

Thanks kids.
-Rob

linckx
04-02-2003, 07:08 PM
Hi Rob,

I think it'll be best to put up your code, probably an endless loop.
I'm not quite the actionqscript-wizz, but sure there are others that will be able to help.

robin

godstatic
04-02-2003, 08:04 PM
odds are, this code has a few errors....since my flash work is at school. anyway, i dont know what's wrong :\


onClipEvent(enterFrame) {
if (Key.isDown(Key.UP) || jumpcounter<30) {
this._y++;
jumpcounter++;
}
if(this._y=300 || jumpcounter > 0) {
this._y=this._y -1;
jumpcounter = jumpcounter -1;
}
}


thanks,
-Rob

godstatic
04-03-2003, 01:24 PM
so i take it that no one can help me on this one?