How do I Set Up A Timed Object?

Get help using Construct 2

Post » Fri Mar 28, 2014 9:06 pm

I'm making this game and the premise is you click on the ghost and he says "Please Don't Do That". If you click on him 5 times, he goes away. Points rack up the longer you go without him going away, but there needs to be a pop up that checks if you're still there every 5 seconds, so you can't just walk away and rack up a bajillion (scientific term) points.

So, I'm trying to have it so the pop up appears every so often (I think I have it set to 5 for testing), but if you don't click on it within 2 seconds, it should disappear and you go to the lose layout.

The problem I seem to be having is that it's not counting both the overall timer and the pop up timer separately.

Thanks in advance for any help!

I have included the capx.
You do not have the required permissions to view the files attached to this post.
B
9
S
1
Posts: 9
Reputation: 1,084

Post » Fri Mar 28, 2014 10:10 pm

Use the Timer behavior. Add it to the text. On text created -> start the timer. When the timer goes off -> game over. If the player clicks and destroys the text first, the timer won't go off.

You could use the Timer behavior on the ghost as well to trigger every 5 seconds and spawn the text.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,630

Post » Tue Apr 01, 2014 12:59 am

ramones wrote:Use the Timer behavior. Add it to the text. On text created -> start the timer. When the timer goes off -> game over. If the player clicks and destroys the text first, the timer won't go off.

You could use the Timer behavior on the ghost as well to trigger every 5 seconds and spawn the text.


Hey, thanks for the reply!

I've taken a look at this and spent some time messing with it and reading about it in the Manual but I can't figure out how to get it to work this way. Is there a chance you could take a screenshot of what you mean? I got a timer to start on an event but I can't figure out how to get it to work with the game where it moves to game over on 0.
B
9
S
1
Posts: 9
Reputation: 1,084

Post » Tue Apr 01, 2014 2:59 am

Here's a couple of ways to use the Timer behaviour.
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
21
G
222
Posts: 3,652
Reputation: 124,733

Post » Fri Oct 17, 2014 2:15 am

Random bump. Ever had trouble with a timer not starting if it was used anywhere besides in an "On Created"?
B
10
S
2
Posts: 77
Reputation: 989


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, DuqueKarl, Vinterstille and 3 guests