1
Graphics / Comparing Coordinates
« on: August 27, 2009, 06:53:45 pm »
You want to stop ur sprite from going out of the screen when moving, is that right? If thats what you want, u could use something like this.
If thats not what you wanted, tell me with what u want to compare the sprite coordinates.
Edit: Tell me where are you from and maybe I can speak ur language.
Code: [Select]
if (mySprite.GetPosition().y > myWindow.GetWidth())
{
// sprite stops moving
}
If thats not what you wanted, tell me with what u want to compare the sprite coordinates.
Edit: Tell me where are you from and maybe I can speak ur language.