I'm trying to make a main menu using SFML, but I don't know how to make text buttons or using images as buttons.So how do I do that, and if someone could provide me with examples in code it would be really appreciated!Thanks!
Fairly the same as above, except a little different.
You should probably use a graphics editor and make a button image with text already on there. Then use a texture and sprite for the button. If the mouse button gets clicked, then check whether the mouse cursor is over that sprite. (Hint use Sprite.getTextureRect() that returns an intRect and use the intRect.contains() function with the mouse coords) you can also check whether the mouse is over the button at all without being clicked, and then change the color of the sprite.