Hi, I am making a simple game for my website project. I have finally learned how to include the game on my site (including .js file(s) into my main index.php).
Now the game is loading, I can play, but even when it finishes (I use Quit the game action) I cannot do anything on the site (like use any buton leading to different part etc.).
Any suggestions? How should I end the game? I can add any details if needed.
There is no way to “quit” a game on websites, the user must simply close the page or navigate on another page using the button/link of the website around the game
You can still redirect the player to a “Thanks for playing” screen.
Oh, thanks.
So the reason that I can’t navigate isn’t because of the game, but rather because of how I include the game on the website?
How did you include it? The easiest way to do so is to add a
I used something different, because of other requirements, but idea of using iframe sounds interesting, thanks.
It didn’t work. probably because I want the game game to be displayed in a div, like other, more simple games made with javascript/jQuery. Probably I’ll have to think about something different. Maybe I’ll just open the game in a new window…
Any suggestions how should I do it?
And second thing - the most important. There is a result of the game in one of the variables. I want to use it outside the game. As far as I know, after reading a few articles I can try to get to it by something like: runtimeScene.getgame().getVariables().get(“Result”) - am I right? I want to use the result - add it to the sum of points earned in other games …