1
Graphics / [Sprite Movement] Question
« on: April 14, 2011, 07:27:24 pm »
Thank you very much!
It works now correctly.
It works now correctly.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
float maxheight = App.GetHeight() + Sprite.GetSize().x;
if(Sprite.GetPosition().x > maxheight)
Sprite.SetPosition(App.GetWidth() - Sprite.GetSize().x, Sprite.GetPosition().y);