How do I Spawn 12 Enemy with 1 Object of Enemy

Just started using Construct 2? Post your questions here

Post » Sun Dec 07, 2014 8:21 am

hi everyone, i'm new here :D

I want to ask you something. I have an object and I want to spawn objects into a layout, how do I make it so that the object appears to the layout totaled 12.

thank you :)
B
9
S
2
G
1
Posts: 28
Reputation: 671

Post » Sun Dec 07, 2014 10:54 am

I am sorry I don't understand your question but, if you want to spawn objects then you could do it like so
You do not have the required permissions to view the files attached to this post.
B
252
S
39
G
15
Posts: 1,964
Reputation: 40,753

Post » Sun Dec 07, 2014 11:27 am

sorry for my question,
I mean, how to create 12 objects every x seconds.
i have made an object, and how to spawn it to layout every x seconds. until 12 object.

for example - enemies that appear on super mario (or other platformer game)

thanks for help
B
9
S
2
G
1
Posts: 28
Reputation: 671

Post » Sun Dec 07, 2014 12:04 pm

You could use the System 'Every x seconds' condition along with the System 'Compare 2 values' condition, and just check for Sprite.Count <= 12.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,415
Reputation: 59,516

Post » Sun Dec 07, 2014 12:26 pm

@zenox98 : thanks for help, it's work.. :)
I want to ask again, how make objects that appear are numbered sequentially.
B
9
S
2
G
1
Posts: 28
Reputation: 671

Post » Sun Dec 07, 2014 1:04 pm

Every 12/1 secounds spawn -- Monster ?

every 1 secound spawn monster (repeat(12)) ??
B
10
S
1
G
1
Posts: 63
Reputation: 840

Post » Sun Dec 07, 2014 1:23 pm

@paperbeemo : thanks for reply,
the problem has been solved, every x seconds spawn monster (repeat until 12). thanks @zenox98
but I have another question.
how to make objects (monster) that appear are numbered sequentially.
B
9
S
2
G
1
Posts: 28
Reputation: 671

Post » Sun Dec 07, 2014 2:00 pm

use Instance variables and assign these to your objects
B
252
S
39
G
15
Posts: 1,964
Reputation: 40,753


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests