Small Problem need Pointers
Posted: Sat Jun 23, 2012 7:17 pm
Now I actually think I have got nearly the right code, the user variable dir is set into dir = 1; for left and dir = 0 for right I used this for a fire ball shooting in a previous project,
but the challenge here is in Noseman the fire ball and noseman were separate actors this time it is the same actor.
now for instance a guy in the game presses a button activating a body posture in the same direction as the previous animation,
he lets go of the button and changes direction pressing the button again he finds it automaticly switched to the same direction.
but the challenge here is in Noseman the fire ball and noseman were separate actors this time it is the same actor.
now for instance a guy in the game presses a button activating a body posture in the same direction as the previous animation,
he lets go of the button and changes direction pressing the button again he finds it automaticly switched to the same direction.
- Code: Select all
if(dir = 1;)
ChangeAnimation("Event Actor", "Bea Shoot left", NO_CHANGE;)
if
(dir = 0;)
ChangeAnimation('Event Actor",Bea Shoot Right", NO_CHANGE;)