Why wont it rotate
Tomaff
Member Posts: 8
If i have 2 actors locked together using the targetX and self.position.x technique, if i try to set the following actor to rotate when the up arrow is press it does not work.
Any ideas?
EDIT: The is only the case when i add gravity to the scene. Both actor will rotate, one when you press left and right and the other when you press up and down.
Any ideas?
EDIT: The is only the case when i add gravity to the scene. Both actor will rotate, one when you press left and right and the other when you press up and down.
Comments
Either take a snapshot or type out what the behaviors are. Something like this:
Actor 1:
Constrain Attribute: game.targetX = self.position.X
Constrain Attribute: game.targetY = self.position.Y
Rule: If key pressed: left is down
--Rotate: Counterclockwise
Rule: If key pressed: right is down
--Rotate: Clockwise
Actor2:
Constrain Attribute: self.position.X = game.targetX
Constrain Attribute: self.position.Y = game.targetY
Rule: If key pressed: up is down
--Rotate: Counterclockwise
Rule: If key pressed: down is down
--Rotate: Clockwise