Start the game after clicking a button

Get help using Construct 2

Post » Fri Oct 04, 2013 7:57 pm

Hello.
I want to impelement in my game that the game will start when the user clicks " START " button.
After the user clicks the button, a spirite will begin to raise it's height by 2 each second.

This spirit will raise it's height until it touches another spirit.

I tried to do this, but it raises it's height only one time after clicking the button.

Any help?

Owner of Movies!
B
9
S
2
G
1
Posts: 38
Reputation: 1,168

Post » Fri Oct 04, 2013 8:10 pm

you would want to add bullet to the sprites behaviors and do it like this. you can play with the speed in the events screen.

https://dl.dropboxusercontent.com/u/68458825/example.capx
B
7
S
1
Posts: 97
Reputation: 1,167

Post » Fri Oct 04, 2013 8:16 pm

[QUOTE=mitchjohnson52] you would want to add bullet to the sprites behaviors and do it like this. you can play with the speed in the events screen.

https://dl.dropboxusercontent.com/u/68458825/example.capx[/QUOTE]

no bullet
I just need a sprite to incrase its height (get bigger size) each second - I did it with "SET HIEGHT TO HEIGHT + 2" and it works, but it happens only one time after I click " START " instead of each second
Owner of Movies!
B
9
S
2
G
1
Posts: 38
Reputation: 1,168

Post » Fri Oct 04, 2013 9:40 pm

Help please? :S
Owner of Movies!
B
9
S
2
G
1
Posts: 38
Reputation: 1,168

Post » Sat Oct 05, 2013 1:25 am

When clicking "start" set a variable to "TRUE"
Check if that boolean is set and add "every x seconds" as a subevent.

+ on start clicked -> set do_grow to true
+ if do_grow
++ every 1 second -> set height to height +2
Image
B
24
S
8
G
10
Posts: 1,821
Reputation: 8,279


Return to How do I....?

Who is online

Users browsing this forum: David181 and 13 guests