Please help(animation)!
Sxarcisious
Member Posts: 45
Ok so I have an actor, which chases the player actor. I am using joystick controls. I have set up this actor to animate based on the direction he is moving.
My problem is that the actor only animate in the SW,S,SE,E directions...He does not animate when going NE,N,NE,W...
I did not do anything different on those four directions and have looked it over and still can not figure it out.
I have his self.direction constrained to this :
vectorToAngle( self.Position.X - game.GoodGuysX , self.Position.Y - game.GoodGuysY )
Then this is the S direction ( this one animates) :
When All true
self.direction >= 45
self.direction < 90
animate
Now this one is North(up) and dosnt animate..(
When all true
self.direction >= 225
self.direction < 270
animate
I wish to figure out why this one does not animate.... Thanks.
My problem is that the actor only animate in the SW,S,SE,E directions...He does not animate when going NE,N,NE,W...
I did not do anything different on those four directions and have looked it over and still can not figure it out.
I have his self.direction constrained to this :
vectorToAngle( self.Position.X - game.GoodGuysX , self.Position.Y - game.GoodGuysY )
Then this is the S direction ( this one animates) :
When All true
self.direction >= 45
self.direction < 90
animate
Now this one is North(up) and dosnt animate..(
When all true
self.direction >= 225
self.direction < 270
animate
I wish to figure out why this one does not animate.... Thanks.
Comments
Hope that helps. Kipper
good luck. kipper