How do I test if an object is inside another?

Get help using Construct 2

Post » Sun Mar 20, 2016 1:08 am

Hello! :)
I'm trying to make my player climb a ladder, but i only want him to do that if his is at least 50% overlaping the ladder, it's possible?
I'm so sorry if i said something wrong, english is not my main language.
Image
B
40
S
14
G
2
Posts: 132
Reputation: 3,527

Post » Sun Mar 20, 2016 5:45 am

If you have an origin, imagepoint, or placeholder object in the center of the player sprite, you can use that point to check if it is overlapping the ladder sprite. If it is, then at least 50% of your player sprite should be on the ladder.
Mistakes were made.
B
53
S
27
G
114
Posts: 1,695
Reputation: 64,438


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 10 guests