181
General / SFML Window not showing!!!
« on: December 25, 2011, 05:54:42 pm »
I havent saw that, sorry. Pyrius is right.
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.
...
sf::Clock Timer;
int CurrentFrame = 0;
while (App.IsOpened()) {
if (Timer.GetElapsedTime() >= 1000 / 30) {
CurrentFrame++;
Timer.Reset();
}
YourSprite.SetSubRect(sf::Rect<int>(CurrentFrame * 100, 0, (CurrentFrame + 1) * 100 - 1, 200));
App.Draw(YourSprite);
}
...
App.Clear(sf::Color(red, green, blue))
if ((App.GetInput().GetMouseX() <=100) && (View.GetCenter().x >= 1000)) View.Move(-Offset, 0);
system("cd");