How do I can make a linear spawm?

Get help using Construct 2

Post » Mon Jul 10, 2017 1:20 am

Hi Guys.

Need help. I want to make a system where clicking the button makes a clone of an object that appears below the previous one (as if it were a queue).

I thought about making an array, but I do not know how to do it properly.
B
6
S
2
Posts: 9
Reputation: 468

Post » Mon Jul 10, 2017 11:24 am

on object clicked sprite1 -> system create new object -> sprite1.x, sprite1.y + 30

This will work, the sprite.y + 30 will spawn the new objext 30 pixels bellow the first one, but then to spawn the third one you will have to click the second one, or you can change the +30 with a variable and each time you click the first sprite add +30 to the variable.
Like my work? Fallow me on social media, and see my games on the arcade.
B
7
S
5
G
9
Posts: 298
Reputation: 5,367

Post » Mon Jul 10, 2017 2:07 pm

imhotep22 wrote:on object clicked sprite1 -> system create new object -> sprite1.x, sprite1.y + 30

This will work, the sprite.y + 30 will spawn the new objext 30 pixels bellow the first one, but then to spawn the third one you will have to click the second one, or you can change the +30 with a variable and each time you click the first sprite add +30 to the variable.


Functionate, thank you.
Now I just need to configure. :)
B
6
S
2
Posts: 9
Reputation: 468


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests