1
Graphics / Comparing Coordinates
« on: August 28, 2009, 02:43:18 pm »Quote from: "Devil0150"
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.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.
oh yeah that's it.
exactly what i needed
thanks a lot.
but now i have another question =)
while i was working with SDL, there were a
function which starts an animation of a sprite.
do u know the same in sfml?
ps:i am from germany
Ancient