motion actor from point A to point B
wollty
Member Posts: 102
I would like to move an actor from point A to point B
when it gets to the point B that I would like to swing from a little bit
without putting a wall actor
I did some tests with
1 - interpolate (self.position.X)
2 - accelerated toward (a little bit swing but as I stop him?)
3 - change attribute (self.motion.linear.velocity.X)
4 - move to
I attach a demo
https://www.dropbox.com/s/ickvilrv3iwoxk5/motion_linear.gameproj.zip
thanks for your attention and help
when it gets to the point B that I would like to swing from a little bit
without putting a wall actor
I did some tests with
1 - interpolate (self.position.X)
2 - accelerated toward (a little bit swing but as I stop him?)
3 - change attribute (self.motion.linear.velocity.X)
4 - move to
I attach a demo
https://www.dropbox.com/s/ickvilrv3iwoxk5/motion_linear.gameproj.zip
thanks for your attention and help
Comments
arrives at the X position and swings a little
sorry for my bad english
http://forums.gamesalad.com/discussion/comment/404317/#Comment_404317
I tried to put a boolean attribute
and a change attribute
self.motion.linear.velocity.X = 0
but does not work correctly
without putting an invisible wall
thanks
When self.Position.X < 400
--Accelerate Toward ____ ____
Otherwise
--Change Attribute self.motion.linear velocity.X To 0
--Change Attribute self.motion.linear velocity.Y To 0
thanks