I just got CTF 2.5 and I am obviously still learning but I got stuck and couldn't find any threads with the answer.
So I am trying to re-create a simple game I made (but never finished due to getting stuck).
But I can't seem to get this part working:
Player clicks on the food button. The food button then spawns food <-- this so far works.
I need a timer or an if statement that if the food is spawned the player cannot click on the button again to get more food (once the player has given the food to the pet there should be a countdown) <-- no idea how to get this working.
The second part is that I have different kinds of food, I've got an apple, a cherry, and a banana so far.
Now, in the other game engine I got it working that it would spawn the food random and the food gives different kinds of points.
So an apple would give +20 hunger and a cherry +15. To get the idea.
But I can't seem to get these to become randomly spawned when clicked on the button.
Another thing that I can't get to work, which I've never got to work is that when you press a button.
Little menu pops op <-- that works. But clicking on the same button again to make the menu go away never works.
Any idea how that can be done? Right now you just click on the x that is drawn on the menu and since you click in that area the menu goes away.
I'm sorry if this doesn't make any sense, I've never been great in explaining things.