How can i set bounds so my image which moves using acclerometer can only move a certain distance? Really need help been trying for a while and getting no where. I have an image moveing with my accelerometer but i want to set boundaries so it only moves within them, example i dont want it to move backwards and only a certain distance to the left and right and forward.
Share
Well you have no code here, but a general answer is to simply keep track of the old positions.
for example: