Why wont it rotate

TomaffTomaff Member Posts: 8
edited November -1 in Working with GS (Mac)
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.

Comments

  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Could you be more specific as to what the rules are for each of the actors if this is an issue for you?

    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
Sign In or Register to comment.