Make actor not leave screen? Or make him appear on the other side?
Is this possible? I want my object, that in this case is a dog, which is controlled by accelerometer, not to be able to leave the screen. When he comes to the end of the screen i want him to stop? I can't find any tutorial about this anywhere on the internet. And also it would be even better that if he leaves the screen he appears on the other side? Like if he leaves on the left side he reappears on the right side? Is this possible?
Thanks in advance,
Thanks in advance,
Comments
Rule...if x position >0 move left.
But like Hachiko said if you want a wrap do that.
Darren.