Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: saintrunner on November 06, 2011, 08:00:12 pm

Title: how do you code jumping?
Post by: saintrunner on November 06, 2011, 08:00:12 pm
In a project I'm writing, I need to have my sprite appear to be jumping. I'd like it to be using getkey(4),UP, but I'm not sure how I can code that so It looks clean. Also I'd like to be able to jump forward, as well as backwards. Any suggestions on how this could be accomplished?
Title: Re: how do you code jumping?
Post by: Deep Toaster on November 06, 2011, 08:02:21 pm
By "clean," I think you mean with gravity, as in acceleration, right? There are some tutorials on that around here...

Jumping forward and backwards is easy -- you don't have to worry about it at all, since it's basically just pressing the arrow keys at the same time you're pressing the jump button, and arrow keys should already be taken care of as moving left and right anyway.
Title: Re: how do you code jumping?
Post by: saintrunner on November 06, 2011, 08:03:28 pm
Can you direct me to a proper tutorial?
Title: Re: how do you code jumping?
Post by: Deep Toaster on November 06, 2011, 08:04:32 pm
By Builderboy: http://www.omnimaga.org/index.php?action=articles;sa=view;article=63
Title: Re: how do you code jumping?
Post by: saintrunner on November 06, 2011, 08:10:21 pm
Thanks!


but how do I code that in axe?
Title: Re: how do you code jumping?
Post by: LincolnB on November 13, 2011, 11:04:16 pm
still need help? I can help you if you do.
Title: Re: how do you code jumping?
Post by: epic7 on November 13, 2011, 11:06:39 pm
I will maybe once I begin making a game with jumping :P
Unless I get lazy and do linear gravity :P