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

Author Topic: Window flickering...  (Read 1400 times)

0 Members and 1 Guest are viewing this topic.

vdrenzo

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Window flickering...
« on: May 12, 2017, 12:46:46 am »
Hi everyone,

in order to learn c++ and sfml i decided to code a curve fever clone...

By now I'm implementing different Gamestates (Main menu, player select menu and the play screen).
So when switching from main menu to player select menu, everything works fine. But when I switch from player select to play screen, the screen flickers and you can still see text(font) of the playerselect menu.

Allthough the player select state is being destructed..

I just cant figure out whats the problem...
I hope one of you can help, and teach me new stuff!

Since it's a bunch of files I packed a Zip:
https://1fichier.com/?vjmv0pd99o

If that's not ok please tell and i will post the whole code!



vdrenzo

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: Window flickering...
« Reply #1 on: May 12, 2017, 11:57:49 am »
Ok, i finally found the Problem.

I was displaying the window (window.display()) twice...

I was looking for that kind of error before posting in this Forum but somehow didnt see the mistake...
Well, nevermind, thanks anyways!

 

anything