Constraining an Actor's Movement to One Axis
jacob@narrativemachine.com
Member, PRO Posts: 15
I've been using Gamesalad for a while now, and have still not been able to solve this issue. What I want to do is prevent actors from moving on the Y-axis. The scenes I am using have a set gravity (Y) of 900. I've tried "Constrain Attribute" on Linear Velocity Y, and "Accelerate" (direction 90, accel 900), but the actors usually continue to jitter or move slowly.
Any help figuring this out would be greatly appreciated!
Any help figuring this out would be greatly appreciated!
Best Answer
-
LiquidGameworks Anchorage, AKPosts: 956First, you probably shouldn't use scene gravity. You will have much better control using individual accelerate behaviors on anything needing gravity. If the actor never needs gravity in this case, you can do nothing. Otherwise, you can constrain self.position.y to XXX