Platform behavior question

Just started using Construct 2? Post your questions here

Post » Mon Mar 28, 2016 8:14 am

I used the platform behavior to handle gravity for some blocks, except when I move them around some strange things start happening.

https://www.dropbox.com/s/qfrw5fwjux0gs ... .capx?dl=0

Please click the blue square to place some blocks, then click the smaller light blue square to rotate the board.

The placed pieces will start bouncing and flying around.

I'm already working on another approach without using behaviors, but I'm really curious about what is going on here and what I could try to fix it.
Mistakes were made.
B
54
S
28
G
115
Posts: 1,705
Reputation: 65,083

Post » Mon Mar 28, 2016 6:30 pm

When you pin the stack sprites to the blue sprite and rotate it the platform behavior picks up some momentum that it keeps after you unpin it. If you disable the platform before rotating and enable it again after, they don't fly off everywhere. They still don't end up perfectly aligned though.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,680

Post » Mon Mar 28, 2016 8:30 pm

Thanks, that helps. I can add something to align them after I get them in the general vicinity of where they should be, but had to stop them from running away first! I didn't know Platform picked up momentum from sources outside the behavior.
Mistakes were made.
B
54
S
28
G
115
Posts: 1,705
Reputation: 65,083


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 3 guests