Position constraint problem
Zourath
Member Posts: 16
It appears that when I constrain the Y position, the X position gets stuck. For example, this actor is supposed to move left and right, and always be constrained to a certain height, but when it gets its height location variable constrained, it cannot move left or right.
Comments
Do you have both move behavior Move Types set to stacked? If it is set to additive and you push both directional keys at the same time, then they may cancel each other out.
Here is what I have:
1. Create an actor.
2. Add the Constrain Attribute behavior and set the Y position (self.Position.Y) to 160.
3. Add a rule that activates with the condition, Actor receives event > key > left > is down.
4. Add a Move behavior within that rule with Direction 180. Move Type: stacked
5. Add a rule that activates with the condition, Actor receives event > key > right > is down.
6. Add a Move behavior within that rule with Direction 0. Move Type: stacked