Create Pushable & Climbable Crates in Platformer

Get help using Construct 2

Post » Thu Mar 14, 2013 4:07 am

You can set conditions on the blocks for movable or not with a variable, then if they are against another block, don't allow them to be moved.
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418

Post » Thu Mar 14, 2013 5:00 pm

I can try that, though I'm just concerned that the box noticably skips 10 pixels (teleports) every time I bump it.

Btw, another concern I have on that code is that when you step on top of the box, the box moves on its own. I don't really want to use a bruteforce y-position checker, so is there a better way to do it?
B
6
S
1
Posts: 10
Reputation: 774

Post » Thu Mar 14, 2013 5:05 pm

I'd go back to where you started from with the physics and work out why it's being weird. It could be something simple like you have uneven sprite masks on your player animation frames.
B
20
S
6
G
2
Posts: 157
Reputation: 3,109

Post » Thu Mar 14, 2013 5:21 pm

@HAXX0RZ You can use the next to wall (left or right) condition to avoid needing Y checks. You can also change the number of pixels from 10 to a smaller number, or set the X to be an offset of the players X so it moves as smoothly as the player.
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418

Previous

Return to How do I....?

Who is online

Users browsing this forum: TheHat and 2 guests