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: 121
Reputation: 3,501

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
51
S
25
G
107
Posts: 1,581
Reputation: 60,458


Return to How do I....?

Who is online

Users browsing this forum: blue visionary, OBLIVION and 14 guests