How do I make my static turret fire in 5 round bursts...

Get help using Construct 2

Post » Tue Mar 29, 2016 9:04 am

Ive tried to make a static turret fire 5 shots in quick succession (0.3sec intervals between each shot) and then pause for a 3 second cool down before firing another 5 round burst...

I've tried to do it using instance variables and timers. It works for the first 5 rounds, but I can't get it to pause and then fire another 5 rounds.

Can anyone help me fix this?

capx link
B
69
S
49
G
58
Posts: 396
Reputation: 36,624

Post » Wed Mar 30, 2016 10:54 am

Bump.
B
69
S
49
G
58
Posts: 396
Reputation: 36,624

Post » Wed Mar 30, 2016 11:23 am

That was a pretty simple thing to accomplish..
Have you tried something like this.......

Took me all of 1 minute to do this :D

Image
B
9
S
3
Posts: 56
Reputation: 801

Post » Wed Mar 30, 2016 2:15 pm

I had troubles with your capX. Its like the frames did't get refreshed. I have no idea why.
I hope someone will solve that for me.

So i made a totaly new capX. Since your question is about the timer, that should be no prob.
Here goes:

https://
drive.google.com/open?id=0B1SSuCVV8v74a3lWZEpWQ0tPM1k

The secret is this: never burry triggers deep down in events. They trigger, no matter the conditions. And you lose control.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Fri Apr 01, 2016 6:17 am

Hi guys. Thanks for your replies, they were very helpful. I kept working on it and I now have my turrets working exactly how I want them.

fixed capx

I wanted to be able to vary the attributes of individual instances within a layout. Doing it this way I can control the following attributes for each turret instance:

-The direction the turret fires (to left or right of screen)
-The number of shots fired in each burst
-The pause between shots
-The pause between bursts
B
69
S
49
G
58
Posts: 396
Reputation: 36,624


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, David181, dop2000, zenox98 and 15 guests