How do I stack objects in top of each other?

Get help using Construct 2

Post » Sat Aug 13, 2016 9:16 pm

For example,

I have a 'Box' with different animations which are different colors.
A different color spawns every 2 seconds from the top of the screen.

Every time they hit the floor the 'Boxes' merge instead of stacking on top of each other.

I have tried different things like physics, pin, etc. However, I'm still new at construct 2 and cannot figure this out.
I'm pretty sure this a simple thing, but for the life of me I cant figure it out.

here's a capx with an example.
https://drive.google.com/folderview?id= ... sp=sharing

Press the download button on the top right.
B
30
S
14
G
2
Posts: 24
Reputation: 3,343

Post » Sat Aug 13, 2016 11:05 pm

Hi,
Remove the bullet behavior, decrease the Y coordinate where they appear and let the magic happen.

https://snag.gy/TqR2vl.jpg
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Sat Aug 13, 2016 11:53 pm

Coin-coin le Canapin wrote:Hi,
Remove the bullet behavior, decrease the Y coordinate where they appear and let the magic happen.

https://snag.gy/TqR2vl.jpg




Hi coin, thanks for the help but how did you reduce the Y?
can you show me your code?

Just in case, I want the box to spawn outside the playable screen and fall from the top of the screen like on my example capx.
When you said decrease the the Y coordinates you mean place each box manually in top of each other by specific YX coordinates, if so I want them to drop from the top of the screen and then stack in top of each other. Like tetris basically.
Last edited by unxcellent on Sun Aug 14, 2016 12:10 am, edited 1 time in total.
B
30
S
14
G
2
Posts: 24
Reputation: 3,343

Post » Sun Aug 14, 2016 12:04 am

Well by "reduce" I meant "increase" as the number is negative.

Image

Use something like -30 instead of -54.
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Sun Aug 14, 2016 12:12 am

Coin-coin le Canapin wrote:Well by "reduce" I meant "increase" as the number is negative.

Image

Use something like -30 instead of -54.



I used -30,-15,-0, but every time the hit the floor they merge instead of stacking in top of each other.
B
30
S
14
G
2
Posts: 24
Reputation: 3,343

Post » Sun Aug 14, 2016 12:13 am

Coin-coin le Canapin wrote:Well by "reduce" I meant "increase" as the number is negative.

Image

Use something like -30 instead of -54.



Hi Coin, thanks for the help.

I got it. forgot to put them as solid.
B
30
S
14
G
2
Posts: 24
Reputation: 3,343

Post » Sun Aug 14, 2016 12:33 am

Oh yeah I forgot to mention that, my bad!
B
12
S
7
G
7
Posts: 450
Reputation: 4,276


Return to How do I....?

Who is online

Users browsing this forum: Sparkz and 3 guests