Multiply objects next to each other

Get help using Construct 2

Post » Wed Feb 25, 2015 5:46 am

I am a newbie at programming and want to make a simple game. I am making a virus game and I want them to multiply next to each other individually. So far I was able to create a version of what I'm trying to make but it seem like it isn't going in the right direction. I want to keep them multiplying as I kill each one of them. Can anyone show me or suggest a good way to do it? Mine has too much unnecessary spawning objects in one screen. I also don't want them to spawn over the walls. I want to make it simple as possible.

On "testing" file, I can make them spawn but they keep spawning because I can't figure out a way how to get rid of the spawn objects.

For "testing02" file, the objects are multiplying fast! (be careful it will crash).

I have attached the files here to take a look at. I am hoping a way to make them spawn without using spawn objects to have better performance.

So basically, I want them to continue spawning until the last one is destroyed.


Thanks,
You do not have the required permissions to view the files attached to this post.
B
9
S
1
Posts: 12
Reputation: 451

Post » Wed Feb 25, 2015 10:06 am

@Smile4me
Take into account that when you spawn one object, you will also create all objects which are in the same container. So maybe, instead of keeping then in container, you should spawn each of the manually, that way you will have better control.

Also, instead of 4 separate spawn objects (like 01,02-04 in your example) maybe you can create just one, and then use condition "for each"

Also you could put them into family. Link about families:
https://www.scirra.com/manual/142/families

PS then we can look into wall spamming, but I would suggest that you open new thread for that :)
B
12
S
6
G
2
Posts: 99
Reputation: 1,727

Post » Thu Feb 26, 2015 3:23 am

@[quote="razorMonkey"]

Thanks, I will consider that. I think what you were saying is close to what I have in "testing" file.
B
9
S
1
Posts: 12
Reputation: 451

Post » Thu Feb 26, 2015 6:08 am

@Smile4me
NP, If you have any more questions about "for each" or family, shoot.
B
12
S
6
G
2
Posts: 99
Reputation: 1,727


Return to How do I....?

Who is online

Users browsing this forum: 20170217, alimuqaddas, PrinceHata, Yahoo [Bot] and 9 guests