touch control/ animation problem please help
hello all! I am confused on some touch control rules and the animations that relate to them.
how can i set a jumping animation facing right and another jumping animation facing left with the same jump button.
if this seems confusing in other words i just need help on how to make my actor move left and right with the correct animations,
how can i set a jumping animation facing right and another jumping animation facing left with the same jump button.
if this seems confusing in other words i just need help on how to make my actor move left and right with the correct animations,
Answers
Rule: when attribute self motion linear x >0
-change attribute animationState to 1
Rule: when attribute self motion linear velocity x < 0
-change attribute animationState to 2
Rule: when jump button is pressed and animation state=1
-animate(facing right animation)
Rule: when jump button is pressed and animation state=2
-animate(left facing animation)
cheers
And the only attribute you have to create yourself is the animationState attribute
Btw: tons of notes included in the rules.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User