Oh sorry. I am thinking of putting an actor at the bottom of the screen. The actor will move left end to right end to left end again in a straight line throughout the game. Just like a robot goal keeper automatically move left and right to block ball. Thanks for the help.
If it's a goal keeper your probably better to constrain the X or Y position (depending on view) to the Ball? You could have it lag a little so it reacts faster or slower to the X Y of the Ball.
Or if you simply want to keep it moving left right left use interpolate.
Comments
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
I am thinking of putting an actor at the bottom of the screen.
The actor will move left end to right end to left end again in a straight line throughout the game.
Just like a robot goal keeper automatically move left and right to block ball.
Thanks for the help.
Or if you simply want to keep it moving left right left use interpolate.
self.position.X to self.position+320
If self position = 320 Interpolate 0
Darren.
I created two invisible wall on both end.
The actor will bounce from left to right to left and so forth.
Cheers!
Darren.
I will definitely use your method as my method has too much flaws.