Pause…Menu?
|
Hi, today i am going to talk about what i have done since the last time i made an blog post. So this week i worked on our pause menu. Yes, it is already implemented and it works.But here is the problem with it. Every time the player opens the pause menu all of our enemy’s which the player was playing against just disappear. And what happens next is more surreal the next wave of enemy’s spawns when you go back to the game state. So that means every time the player will open the pause menu he can just skip the next wave and in that way he can just cheat him/herself trough the hole game. We got a lot of feedback from it when we had the beta testing. A lot of players just click on the Esc button as soon they felt their self overwhelmed by an to strong wave of enemy’s. Now the problem in code is that i still try to figure out what the problem is. I still can’t find it. Our code is saying right now as soon you click on Esc the pause menu shall open and you going to have like options you can choose in between. It is the resume button, the options button and the quit button. Like i said all the options are working properly but when i get back to the game all my enemy’s are gone and the next wave starts. I tried to make an if sentence that said like, if you pause the screen it should save all data and when you click on continue , that saved data should run from the point it saved it and put it back to the same state ,the ”game state”. However i tried to do it but it didn’t work. And i still cant figure out why. I tried to ask the glorious internet but i couldn’t find an answer … On all forums they just talk about system pause, and we know that it just pause the hole system which we don’t want to do . I thought something was wrong ,maybe in our code which was the engine of one of my colleges in the group, i tried to find out if the states which we declared was wrong or somewhere i missed an equation or an variable . Still i cant find what the problem is … Well good luck to you and good coding . I still haven’t figured out what the problem is .
|