Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

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.


Messages - wiired24

Pages: [1]
1
Graphics / Re: Help with Clearing the Window
« on: November 10, 2016, 02:36:50 am »
Thanks for the imformative response. I managed to get the window.clear() function  to work but the only problem is after passing in sf::color::white as a parameter rather than clearing the screen to the color white and staying white it just flickers with the color white really fast.   I don't understand why it's doing this.

2
Graphics / Help with Clearing the Window
« on: November 09, 2016, 02:57:44 am »
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 :P).


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.

Pages: [1]