You could add an if then test before each movement to see if the new Y value will be less than Canvas.height minus sprite.height
That would keep your sprite from the bottom edge.
(Look before you leap)
You could add an if then test before each movement to see if the new Y value will be less than Canvas.height minus sprite.height
That would keep your sprite from the bottom edge.
(Look before you leap)
thanks!!!!!!!!!!!!!!!!!!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.