Fire bullet in time interval by holding left click

Get help using Construct 2

Post » Thu Nov 10, 2011 11:44 am

How do I do that? I want to hold left click on the mouse and fire a bullet, like lets say every 0.5 secs?

What I am having right now is that:
Condition : Mouse -> Left button is down
Action: Player -> Spawn Bullet

This will create the bullet every tick, thus a lot of bullets in one second. But I want to spawn the bullet only every 0.5sec.



Thanks in advance.DeepThoughtz2011-11-10 11:45:34
B
3
G
1
Posts: 3
Reputation: 581

Post » Thu Nov 10, 2011 11:54 am

Add the "System>Every X Seconds condition to the Mouse condition and set it to 0.5, that should make it fire every 0.5 seconds while you hold the button down

Heres a Capx3DGS2011-11-10 11:59:07
B
15
S
1
G
2
Posts: 62
Reputation: 1,696

Post » Thu Nov 10, 2011 12:08 pm

Woah, thanks for the quick reply. This engine is really awesome!
B
3
G
1
Posts: 3
Reputation: 581

Post » Thu Nov 10, 2011 1:13 pm

Yea I'm new to it also, 100% the best out there for programmers and non programmers
B
15
S
1
G
2
Posts: 62
Reputation: 1,696


Return to How do I....?

Who is online

Users browsing this forum: Braus, nedzad, shinkan and 26 guests