Hey everybody, I was wondering when you move an object along an x axis using the code provided by this site. How you can prevent the object from moving off of the stage, by making some sort of boundary, and then for the objects to bounce off and head toward the opposite direction.
I also have a second question. Again with the x-axis, once an object moves off the stage, is there a way for the object to return but from the other side of the stage and to continue moving?
Sorry if im not clear
Thanks in advance!