i have a main character with a sprite for each of the following: up, down, left, right, left moving, right moving, left crouch, right crouch, left crouch moving, right crouch moving, still, jump, aim up jump, aim down, jump, jump right and jump left. (i know way more complicated than it needs to be, but its pretty much too late too change it, i will make my next game better) so far all of these functions work.
heres my real problem: i have made a sprite with a parachute and when you press right or left while holding a (parachute button) he shoould move in that direction and change sprite to parachute right or left.
But he doesnt, he changes instead into jump right or jump left, and i seem to have run out of ways to control all this. i previously used things like: if vspeed=0 and if sprite_index = etc, also for parachute i am using the expression keyboard_check(ord('A')) for right and left so when you press right or left it should change into parachute right/left because you are holding down the a key. for jump right/left it is controlled by if vspeed=0 NOT so if its in the air etc.
what i need is either some advice, a solution or even some code i could paste in(although i consider this cheating, lol)
i feel like i need to ask two questions of an instance but from what i can tell in d&d you are limited to one.
example:
if vspeed does not equal zero and 'A' key is not pressed jump right, if vspeed does not equal zero parachute right or the oppposite: if vspeed does not equal zero and 'A' key is pressed then parachute right else, if vspeed does not equal zero then jump right.
it seems it could be done a number of ways so long as i can ask two questions or apply two statements to a situation but i dont know how or if you even can.
also, while we're here my jumping animation does not change back to standing when he lands and i cannot think of a way to do this.
if anyone has a good way of jumping/ moving that seems unrelated to this i would probably still find it useful so long as its not complicated code, but even then i might find it useful. what i am trying to do is stress that ANY help would be very useful because i am stuck...
Any Help would be much appreciated!!
Edited by DunnoMuch44, 11 March 2012 - 07:50 PM.











