I created a standard hidden object game with a few added features. Is there a way that when all the hidden objects have been clicked, the game will end?
I created a standard hidden object game with a few added features. Is there a way that when all the hidden objects have been clicked, the game will end?
Hi and welcome to the forums
Firstly, it's a nice idea for a game, I like the timing element. There are several ways of doing that, and which one is best depends on what you want to do with your game (like, will that be the only level, or will there be more levels? etc).
You could do this (I'm assuming you're using the editor):
if (!wade.getSceneObjects('objectToFind', true).length){ // game is over, do something here wade.clearScene(); wade.loadScene('gameOver.wsc'); // you'll need to create a game over scene}
I hope this helps, let us know how you get on
Thank you so much for your response! I took a slightly different direction using the tutorial here: https://youtu.be/AUvhfrTktvQ
Everything seems to work great, but it doesn't appear to be working on mobile or in Firefox, so I am now trying to figure that out...
Check it out!
Hi
Your object called "leak1" seems to have a sprite with negative width. Firefox doesn't like this.
hi
I Tried to implement the"game over" feature, but right after appending the property "objectToFind" it is not possible to click on the cats anymore. even if i remove the property.
Do you still have AutoListen selected?