Have your sprite glide across the screen and when it touches the edge (note: the “edge” can be sensed as a standard function), have it change directions.
As a result i used a ghoul as my sprite, and placed a background on the screen to make it easier to see the gliding that the sprite does. My script looked like this:
The following set of snapshots show the effect that this script had on my sprite, and how i have managed to overcome this challenge:
No comments:
Post a Comment