Creating a basic game where the user will interact with the UI only to make a decision before moving to the next level (or not, if the wrong object is selected). Very early stages. Front End Dev by trade, but I am struggling with some very basic stuff, so please excuse any inaccuracies.
On first touch the game starts, player begins running until he encounters the first “enemy” in the form of a saw.
-
obj/sprite appears asking for help, (using show/hide) disappears 3 secs later
-
2 obj/sprites are created, and appear
-
if player touches one, it rotates, and an animation will take place based on if the player selected the correct choice
-
the other obj/sprite is deleted
Here is where I am struggling:
a. If you click where the object is, before the game gets to this point, even though invisible, the object, once it does show, will already have rotated, and the other will be deleted.
b. If you touch in the space of the “deleted” objects location, it will appear and delete the other.
c. When touching elsewhere, multiple objects will display.
I searched for answers, and the only thing I could find was to create the objects as I did, and they should be unable to be clicked as they are not in the scene yet. But this did not work for me. I was not able to find a solution to deleted objects reappearing.