Hello. I'm trying to make my player sprite change from 1 animation to another when arrow down is pressed (like a morph).
<img src="http://img15.imageshack.us/img15/4910/screenqfe.png" border="0" />
I'm super new to construct, sometimes I find that my old "logic" doesn't seem to work the same way as it would do somewhere else (perhaps I just need to learn how the stuff exactly behaves).
Could anyone be so kind to point me to a tutorial (couldn't find any) or could anyone explain me what am I doing wrong?
Thank you very much!
try this one : change the condition on event 4 to : pressed down arrow
If you don't need that BRFlag variable for something else, you can delete event 5 - 9
And on event 4 do:
On down arrow pressed - > Set animation to jugador.AnimationName = "sr" ? "sb" : "sr"
that should do the trick ^^
Edit: Well I realized that for someone new to C2 it may be a bit too difficult, so i made you a capx file
change one animation to another
Develop games in your browser. Powerful, performant & highly capable.
Thank you very much shinkan, that works (and at the same time I learned about conditional ? true : false).