game start on X seconds if the player do not press X key

Get help using Construct 2

Post » Fri Apr 03, 2015 9:11 pm

Dear :
I made a ARKANOID style game in which to start the game , the player must press the space key .
As I can do to make the game starts automatically if less than "X" seconds the player did not press the spacebar ?
B
40
S
9
G
2
Posts: 111
Reputation: 3,668

Post » Fri Apr 03, 2015 9:28 pm

Give some object in your layout the timer behavior.

then:
on start of layout: (timer behavior of the object) start timer "autostart", once, x seconds

on timer "autostart": start game


also don't forget to deactivate the timer, if the player presses x
on X pressed: stop timer "autostart"
start game
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786

Post » Sun Apr 05, 2015 1:28 pm

mindfaQ wrote:Give some object in your layout the timer behavior.

then:
on start of layout: (timer behavior of the object) start timer "autostart", once, x seconds

on timer "autostart": start game


also don't forget to deactivate the timer, if the player presses x
on X pressed: stop timer "autostart"
start game



Thanks , I'll try
B
40
S
9
G
2
Posts: 111
Reputation: 3,668


Return to How do I....?

Who is online

Users browsing this forum: gameglaux, KaptanZorba, Xeeko and 7 guests