How do I can make shooting my enemie one by one

Get help using Construct 2

Post » Fri Sep 09, 2016 2:49 pm

Hello, (i m a etudiant french my english is not perfect sory :? )

I m on a project of a game and i block for a prog, i try to make shooting my group of enemie every 2.5 seconde when they spawn and not together but my groups of enemies shoot together but they spawn one by one (if you haven't understand my englsih say to me and i redit the post.
I m block with since lot of days :(
I know it's simple but i m beginner
Image
B
3
Posts: 3
Reputation: 183

Post » Fri Sep 09, 2016 3:06 pm

You can't bury the Every X seconds under a For each. Add Timer to the enemie and set it to repeat at 2.5 seconds.
ImageImageImage
B
71
S
22
G
257
Posts: 3,791
Reputation: 142,698

Post » Fri Sep 09, 2016 4:29 pm

tanks i have understand but when i try to repeat my instance the game crash because it's set to the frame and not to the time (s)
you know ?
B
3
Posts: 3
Reputation: 183

Post » Fri Sep 09, 2016 4:55 pm

No. You should post a CAPX so people can see and help.
ImageImageImage
B
71
S
22
G
257
Posts: 3,791
Reputation: 142,698

Post » Fri Sep 09, 2016 6:37 pm

Do it like this, NathanP. :mrgreen:

https://www.dropbox.com/s/3u1rkrqhept4h ... .capx?dl=0

I used a Wait event. If you plan to use the code; please don't use Wait in loops.

https://www.scirra.com/tutorials/723/us ... t-in-loops
B
11
S
6
G
15
Posts: 256
Reputation: 9,207

Post » Fri Sep 09, 2016 6:47 pm

ok thx Gmoney
you can close the post
B
3
Posts: 3
Reputation: 183

Post » Fri Sep 09, 2016 7:51 pm

You're welcome, NathanP. :mrgreen:

I can't close the post.. Please add [Solved] to the subject, if you like.
B
11
S
6
G
15
Posts: 256
Reputation: 9,207


Return to How do I....?

Who is online

Users browsing this forum: WesleyDeveloper9 and 6 guests