I have been attempting to make a game where the character can move while he is jumping, but when I try he startes using the walking costumes. I can't seem tho figure out how to stop that from happening. Does anyone know how?
Thanks!
Offline
Try making two separate scripts for changing the costume and the jumping. Make a variable called "in air". Under the first block that makes you jump, make it set in air to 1, and when you land set in air to 0.
The costume changing scripts should look something like this:
<when green flag clicked>
<forever>
<if><( <{ in air }> <=> 0 )>
[walking costumes]
<else>
[jumping costumes]
<end>
<end>[/blocks]
Offline
greenflag
forever
if (key[Left ]pressed <or>key[ right ]pressed)
[walking costume(s)]
else
[standing costume(s)]
end
end
Last edited by yambanshee (2009-02-22 08:03:36)
Offline