Move To issue
naydi306
Member Posts: 18
I have set up an attribute to trigger a MOVE TO behavior. When trigger is "1" Move actor to set destination (simple right?).
When I preview the action half the time the function works. The rest of the time the actor moves beyond the set location.
How can I make the actor move to a certain location every time the trigger is set at "1"?
When I preview the action half the time the function works. The rest of the time the actor moves beyond the set location.
How can I make the actor move to a certain location every time the trigger is set at "1"?
Comments
Rule
When trigger is 1
Move to
X 256. Y 300
Rule (inside above rule)
(on the direction you may want to use "equal to or greater than" or "equal to or less than" this will account for decimal places, so if the location is 256.01 moving right it will stop it.)
When self.position X = 256. When self.position Y = 300
Constrain attribute self.motion.linear velocity X to 0
Constrain attribute self.motion.linear velocity Y to 0
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS