Hi Everyone,
Enjoying AGK. I am stuck with a few things which I have searched for solutions for in the manuals, online help, examples and so on as well as trying various things myself without any luck as yet and any help would be appreciated.
I have a game in which I have a sprite moving left to right across the top of the screen using a simple script :
SetSpritePosition ( compad, x#, 95 )
//add 0.5 to the variable x#
x# = x# + 1.0
This works just fine.
The sprite is stopped at the right hand side of the screen and I have it looping back to the left and repeating from left to right again continuously from the left hand side.
When it gets to the right hand side of the screen - does anyone know if there is a way to have the sprite reverse direction from its position at the right hand side so that it goes from left to right and the right to left and continues in that loop?
I hope some of that makes some kind of sense.
Thanks and happy game making