Constrain Behaviors Not Working
![svn](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
I have an actor set up like so:
When AttributeX=-1
Constrain Attribute 'Self.Position.X" to '(Game.MainCharacter's X Position)-50'
Constrain Attribute 'Self.Position.Y" to '(Game.MainCharacter's X Position)+5'
(essentially constraining one actor 50 spots to the right and 5 spots above another actor)
When AttributeX=1
Constrain Attribute 'Self.Position.X" to '(Game.MainCharacter's X Position)+50'
Constrain Attribute 'Self.Position.Y" to '(Game.MainCharacter's X Position)+5'
(constraining the same actor now 50 spots to the LEFT and 5 spots above another actor)
But when I spawn the first actor, it stays where it is and its position does not change to that of the main character's.
What am I doing wrong?
When AttributeX=-1
Constrain Attribute 'Self.Position.X" to '(Game.MainCharacter's X Position)-50'
Constrain Attribute 'Self.Position.Y" to '(Game.MainCharacter's X Position)+5'
(essentially constraining one actor 50 spots to the right and 5 spots above another actor)
When AttributeX=1
Constrain Attribute 'Self.Position.X" to '(Game.MainCharacter's X Position)+50'
Constrain Attribute 'Self.Position.Y" to '(Game.MainCharacter's X Position)+5'
(constraining the same actor now 50 spots to the LEFT and 5 spots above another actor)
But when I spawn the first actor, it stays where it is and its position does not change to that of the main character's.
What am I doing wrong?
Comments
You will need an integer to go into the minus are you using an index?
Darren.
@Calvin: I have constrained Game.MainCharacter's X Position to the main character's X position.