How do I destroy a Block when the Player hits it from below

Get help using Construct 2

Post » Fri May 23, 2014 9:25 am

Hi,

I want to do a little Plattformer. But I can't figure out, how to destroy a block if it get's hit from bottom.

I tried "is overlapping at offset(0,-1)", but it wan't work correctly.

Does anybody has some tipps?
B
3
Posts: 4
Reputation: 183

Post » Fri May 23, 2014 9:33 am

becarefull of having use overlap on the good sprite .

set you'r offset on 0,1
Last edited by vioz on Fri May 23, 2014 11:22 am, edited 3 times in total.
B
13
S
3
G
2
Posts: 49
Reputation: 1,675

Post » Fri May 23, 2014 10:54 am

mmh don't seems to work.

Now I can't run on the top of the blocks, canÄt even test jumping from below.

isn't X to the right, and Y to the bottom? I tought 0/-1 would be right but don't works correctly
B
3
Posts: 4
Reputation: 183

Post » Fri May 23, 2014 11:17 am

(Horizontal,Vertical)

0,1 top
0,-1 bottom
1,0 left
0,1 right

make a screenshot or send the capx for i see what is wrong.
Last edited by vioz on Fri May 23, 2014 11:21 am, edited 2 times in total.
B
13
S
3
G
2
Posts: 49
Reputation: 1,675

Post » Fri May 23, 2014 11:18 am

ok I think the Problem is in the animation. When I deactivate the animation change, it won't happen (it also don't happens in my 3 lines test project).

Thanks for the info, then 0, -1 seems to be correct.
B
3
Posts: 4
Reputation: 183


Return to How do I....?

Who is online

Users browsing this forum: lukewasthefish and 15 guests