oh yeh thats copy paste error, i was writing it manually
while (App.isOpen())
{
while (App.pollEvent(Event))
{
if (Event.type == sf::Event::Closed)
App.close();
if (Event.type == sf::Event::KeyReleased)
{
if(Event.key.code == sf::Keyboard::Return)
{
if(stage == 0)
{
stage = 1;
loaded = 0;
}
else if(stage == 1)
{
if(menu_choice == 0)
{
stage = 2;
loaded = 0;
}
if(menu_choice == 1)
{
}
if(menu_choice == 2) // This is when he presses exit menu/same goes for the X sign on the windows bar.
{
App.close();
}
}
}
}
}
}
return EXIT_SUCCESS;
}
thats it
Im using windows 7, VC++ 2010. Hes still on Win XP SP3.
Im gonna try giving him an empty window program, to see if it works with that one.