How do I can make shoot all instances?

Get help using Construct 2

Post » Wed Mar 26, 2014 5:43 pm

Hello,
I would like that all the instances of my Sprite shoot an object every x seconds.

System | On start of layout => Sprite | Start Timer "shoot" for 1.0 (regular)
Sprite | On timer "shoot" => System | Create object Sprite_bullet at (Sprite.x,Sprite.y)

This work if there's only one instance of Sprite on the layout, not many... So, how to do ?
Last edited by Wallygator on Wed Mar 26, 2014 6:33 pm, edited 2 times in total.
B
5
S
1
Posts: 22
Reputation: 448

Post » Wed Mar 26, 2014 6:10 pm

Just taking a shot in the dark,
Maybe put those 2 lines as a sub event under the System| Every tick command.
B
3
Posts: 5
Reputation: 210

Post » Wed Mar 26, 2014 6:32 pm

I tried this but only the 1st instance shoots, not the others:
Pick all "Sprite" + Every 1 second => System | Create object Sprite_bullet at (Sprite.x,Sprite.y)
B
5
S
1
Posts: 22
Reputation: 448

Post » Wed Mar 26, 2014 6:53 pm

Edit : I finaly found how to do :

Every 1 second + For each Sprite => Create object Sprite_bullet at (Sprite.x,Sprite.y)
B
5
S
1
Posts: 22
Reputation: 448


Return to How do I....?

Who is online

Users browsing this forum: bclikesyou, brunopalermo, kellehk, R0J0hound, ST314 and 25 guests