First i would like to say hello. I'm rather new to SFML and somewhat new to C++ as well. I'm glad to be in a community of indie developers. I've been looking over alot of peoples projects and many of them i find to be inspiring to say the very least.
I'm working on build a small 2D RPG. It's going to be very minimal just a title screen, an overworld map, maybe a few npcs and if i can figure out how to implement AI, a battle system. This is my first SFML C++ project so i think it would be foolish to try and make the next Diablo or Final Fantasy off the bat. Here is a screenshot of the game currently titled "Dungeons & Monsters"(Original I know right
).
The Problem i'm having is after the window opens and the user sees the title screen i'm trying to implement some logic to where when the user presses the Return key the screen will then clear and everything i drew initially for the title screen will be cleared. Then i could draw to a new frame basically. I can't figure out exactly how to implement this. I've tested the input from the return key on keyboard and it is working correctly. If anyone could offer some input or suggestions how to implement this that would be great. Thanks in advance guys. I have attached the source as well feel free to look it over.