For Each Object (Create an Object)

Get help using Construct 2

Post » Sat Aug 04, 2012 2:06 am

I want to create an object for each object on the screen. For example if i have 4 squares on the screen i would like to spawn 4 circles at the squares origin.


I thought the for each would work but no luck. It only spawns 1 object. I ran into this problem before but i through it under the rug. Now i actually wanna know ow to do it lol.
B
22
S
5
G
3
Posts: 194
Reputation: 5,855

Post » Sat Aug 04, 2012 4:39 am

Did you try adding an action to move the object (select the object type of the newly created object) and to the position of the object selected in for each..?

I remember running into this too
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Sat Aug 04, 2012 6:50 pm

Not sure what you mean but i tried to say for each object spawn a new object at its origin on layer(x). Its probably something simple i just gotta figure out why its not working.
B
22
S
5
G
3
Posts: 194
Reputation: 5,855

Post » Sat Aug 04, 2012 7:35 pm

I figured it out lol. All i have to do is say: On start of layout Objext(x) spaawn object(y). hehehe. This way every object of the x type will spawn an object y at layer(x).
B
22
S
5
G
3
Posts: 194
Reputation: 5,855


Return to How do I....?

Who is online

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