Space invaders help

Get help using Construct 2

Post » Mon Dec 30, 2013 7:38 am

The space invaders don't fire randomly, well, they do except all at once when they do fire.
System->every random(3) seconds, invader spawn fire object.

Also, if possible, I want them to all move down one when one hits the edge, just like in the original version. I tried the "Pick All" system event but for some reason they all cling to the edge for some reason and get messed up.
Thanks in advance for your help.
B
12
S
3
Posts: 89
Reputation: 1,566

Post » Mon Dec 30, 2013 7:51 am

Try this ....

For each Invader
Every int(random(0,5)) seconds >>> Invaders spawn fire object
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Mon Dec 30, 2013 12:38 pm

Do you have a sample capx of what is happening?

If they are all instances of the same sprite, at the top level of an event they are all already picked. Further picking is actually filtering out the ones you don't want to act on. "Pick All" is the command to reset it after you had filtered some out.

So if they are the same instance, telling that sprite to drop (y+10 or something) they should all drop, and then if they are a bullet heading X direction, set the bullet speed to -invader.Bullet.Speed
-If your sprite was named "invader" abd they will reverse direction. (just put a minus in front)
B
239
S
62
G
33
Posts: 903
Reputation: 40,562

Post » Fri Jan 03, 2014 2:46 am

thanks, but the problem I have still persists.
B
12
S
3
Posts: 89
Reputation: 1,566


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 12 guests