Help with making actors visible/invisible and updating timer?
hayleyd11
Member Posts: 6
Hi, so I'm not sure whether it's even possible to do this, but what I would like to know is:
I have an actor that has to go around a maze collecting apples. The player has 60 seconds to collect them all and reach the exit. I've got to this stage but now I would like to add an additional feature to the game.
I want to create an actor called golden apple, and then make this golden apple appear and disappear randomly in the game, for a period of 3 seconds. When this golden apple appears, the player can then shake the phone, and when the accelerometer identifies that the phone has been shook, it adds 20 seconds to the time left in the game. I only want the time to increase if the player shakes the phone only when the golden apple is visible (for that 3 second period).
Is this possible to do? I'm new to this so not quite sure where to start.
I have an actor that has to go around a maze collecting apples. The player has 60 seconds to collect them all and reach the exit. I've got to this stage but now I would like to add an additional feature to the game.
I want to create an actor called golden apple, and then make this golden apple appear and disappear randomly in the game, for a period of 3 seconds. When this golden apple appears, the player can then shake the phone, and when the accelerometer identifies that the phone has been shook, it adds 20 seconds to the time left in the game. I only want the time to increase if the player shakes the phone only when the golden apple is visible (for that 3 second period).
Is this possible to do? I'm new to this so not quite sure where to start.
Comments
Depending on how new you are this may be a hit over your head as a whole. If that doesn't make much sense I would suggest studying all of the gshelper and GS cookbook videos
Cheers