Overlapping at imagepoint

Discussion and feedback on Construct 2

Post » Sat Mar 11, 2017 7:56 pm

I'm wondering if there's an easy way to check if a sprite is overlapping another sprite or a coordinate, with one of its imagepoints. So far i've just created a second smaller sprite on the imagepoint i wanted to test, tested the overlapping and destroyed it. But that's inefficient and requires to test For Each instance.

EDIT: seems like i can use pick overlapping point: can i use it without for each, if i need to test multiple objects?
B
66
S
22
G
4
Posts: 360
Reputation: 6,584

Post » Mon Mar 13, 2017 1:53 pm

Sure you can achieve that by using family, like in this case: how-do-i-stop-instances-of-the-same-sprite-from-overlapping_t184211
ImageImage
B
114
S
51
G
24
Posts: 790
Reputation: 23,480

Post » Mon Mar 13, 2017 2:30 pm

Unless I misunderstood, you can use "Is overlapping at offset" for this.

For instance, if you want to check what's under your player object, it would look like this:

Image

This checks if there's a ladder 35 pixels below the origin point of the player.
B
125
S
43
G
41
Posts: 849
Reputation: 28,260


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests