How do I do something only once?

Get help using Construct 2

Post » Sat Jul 05, 2014 7:03 pm

Okay i added the system > every tick event for my lasers,and it works perfect,because,i also set that if there is 0 lasers currently on the layout,lasers are allowed to spawn,so,this doesn't overwhelm and there is always only 1 laser on the screen.And the whole reason i am using every tick and not something like spawning lasers when pressing spacebar,is because it is an android game,and it needs to shoot by itself.Ok,so,for my beams it is a bit different,1 is supposed to spawn,and that's it,that weapon is gone.But,with every tick,it spawns beams...well every tick,so obviously i don't wan't that,but i couldn't manage to find how to restrict it so that only one spawns? Anyone knows? :D
B
5
Posts: 24
Reputation: 280

Post » Sat Jul 05, 2014 7:05 pm

trigger once while true wont work? you can find it in the system conditions
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,368

Post » Sat Jul 05, 2014 7:35 pm

System:Compare two values: Spite.Count = 0 -> create...
ImageImageImage
B
71
S
21
G
221
Posts: 3,649
Reputation: 124,227

Post » Sat Jul 05, 2014 8:40 pm

blackhornet wrote:System:Compare two values: Spite.Count = 0 -> create...


I know that but in this case it isn't the proper solution,i tried it :)
B
5
Posts: 24
Reputation: 280

Post » Sat Jul 05, 2014 8:49 pm

RookieDev wrote:trigger once while true wont work? you can find it in the system conditions


Thanks! Works!
B
5
Posts: 24
Reputation: 280


Return to How do I....?

Who is online

Users browsing this forum: Darth Crusher, marcoscodas, Yahoo [Bot] and 7 guests