Actor moving from left to right and right to left
sebmacfly
Member Posts: 1,018
Hi!
I want to do an accelerate behavior on a actor...
That actor have to move from right to left, and left to right, etc etc etc
Thanks
I want to do an accelerate behavior on a actor...
That actor have to move from right to left, and left to right, etc etc etc
Thanks
Comments
Thank you
When my first actor hit the second actor (who are moving) i don't want to restitute my movement on that second actor... I don't know if i explain right...
The Support section of this site has many good resources to figure out how these things work. Also, taking the template games and seeing how they work will help you a lot. I would suggest saving your forum questions until you have exhausted the support resources, or otherwise you might lose a little good will with too many questions for simple things. Help is here if you are truly stuck.
Good luck!
So i have to Constrain atribute Self.Position.X to Self.Position.X??
Thanks
You would need to Constrain the Actor's self.Position.X to a value, like 160.
You can set it up with an Attribute, like this:
Create a new Attribute in the Actor called myX (real)
Then:
Change Attribute
self.myX to self.Position.X
Constrain Attribute
self.Position.X To: self.myX
Hope this helps!
Joe
So:
Create a new Attribute in the Actor called myY (real)
Then:
Change Attribute
self.myY to self.Position.Y
Constrain Attribute
self.Position.Y To: self.myY
Hope this helps!
Joe
Thank you very much!