0 Members and 4 Guests are viewing this topic.
x = Rect.GetPosition().x; std::cout << x << std::endl; // Always prints 0;
sf::Shape Rect = sf::Shape::Rectangle(0, 0, 20, 20, sf::Color::Red);
sf::Shape Rect = sf::Shape::Rectangle(100, 100, 20, 20, sf::Color::Red);
Stupid of me. I thought first args of constructor are pos.
Quote from: Nerolat on November 27, 2012, 06:57:38 pmStupid of me. I thought first args of constructor are pos.Well RTFM! it's so nice and easy understandable. Also I advise you to use SFML 2, because SFML 1.6 hasn't been touched over 2 years, has many bugs and lacks a lot of new and shiny features.