phinnycupcakes
12-11-2008, 07:14 PM
Hi! So I've been going around trying to get some help making a jump method for my 2D sidescroller game that i'm working on... EVERY SINGLE TIME, OUT OF EVERY HELP SITE I GO TO, they always give me something with a Key UP.isDown()...<< while( isDown ) >>???? I DONT WANT MY CHARACTER TO BE FLYING! I want it to be just a single jump that lands on a given surface marked as "land" (why land and not a specific X coordinate? because I want there to actually be platforms.)
I've got left and right mastered and enemies and everything.. All I need is just SOME help for an actual jump method that people would use...
THANK YA!
Phinny Cupcakes
EDIT
My code for moving left and right involves using Key.isDown in functions that I later put into the function OnEnterFrame... So if you could think of a single method I could easily type into the onenterframe function... that would be most awesome..
And I'm not too experienced with listeners.. in fact I've never used them before... only heard and read about them.
I've got left and right mastered and enemies and everything.. All I need is just SOME help for an actual jump method that people would use...
THANK YA!
Phinny Cupcakes
EDIT
My code for moving left and right involves using Key.isDown in functions that I later put into the function OnEnterFrame... So if you could think of a single method I could easily type into the onenterframe function... that would be most awesome..
And I'm not too experienced with listeners.. in fact I've never used them before... only heard and read about them.