46
Graphics / Window coordinates
« on: June 19, 2010, 08:56:23 pm »
After creating cBall with sf::Shape, try initializing its position with cBall.SetPosition(). I think its initial coordinates are causing ChangeX() and ChangeY() to get called every frame, which just makes it oscillate between moving one way and the other. If you set it to at least 20, 20 then ChangeX/Y won't get called every time.