16
General / Re: How to make a button in SFML?
« on: November 18, 2013, 10:32:07 pm »
Well, for starters, event.MouseButtonReleased is not a thing, though technically it does exist. MouseButtonReleased is in fact a static constant in sf::Event, much like sf::Event::Closed, which tells you that this event was a mouseup event. So you should be checking it event.type == sf::Event::MouseButtonReleased and then check if event.mouseButton.button == sf::Mouse::Right.
As for the error you listed at the bottom, I can't help you with it because I can't figure out where in your code it's being caused.
By the way, instead of BOX you can use sf::IntRect.
As for the error you listed at the bottom, I can't help you with it because I can't figure out where in your code it's being caused.
By the way, instead of BOX you can use sf::IntRect.