Spawn infinite object with the SAME CODE everytime ?

Get help using Construct 2

Post » Fri Jan 27, 2017 2:11 am

so i made an object (sprite1) .. when i drag it.. it will move toward the mouse position.. and when i release the mouse left button.. the object will stop move.. but when the object stop moving i want to spawn another object with the same CODE as sprite1... like everytime i release the mouse left button the object with the same CODE as sprite 1 will spawn.. is it even possible ? if it is.. please tell me how :C (i dont want to use behavior)
Last edited by AnotherUser on Fri Jan 27, 2017 12:08 pm, edited 1 time in total.
B
8
S
3
Posts: 46
Reputation: 708

Post » Fri Jan 27, 2017 4:26 am

What have you tried so far?
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,991

Post » Fri Jan 27, 2017 11:54 am

spawn the same object, but i got all of the 2 objects move at the same time...
B
8
S
3
Posts: 46
Reputation: 708

Post » Fri Jan 27, 2017 2:19 pm

@AnotherUser save the last spawned objects UID and use it in the condition for the movement.
Image
B
30
S
9
G
3
Posts: 171
Reputation: 3,329

Post » Sat Jan 28, 2017 12:55 am

UID ?
B
8
S
3
Posts: 46
Reputation: 708

Post » Sat Jan 28, 2017 12:59 am

Image
B
30
S
9
G
3
Posts: 171
Reputation: 3,329


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 35 guests