Specify offset range in "overlap by offset"?

Get help using Construct 2

Post » Sat Dec 19, 2015 9:01 pm

Instead of drawing a sensor and attaching it to an object, is it possible to "draw" the sensor in some way by code instead, perphaps by specifying an overlap range; from - to ?
Brick by brick, stone by stone.
B
52
S
24
G
17
Posts: 273
Reputation: 12,663

Post » Sat Dec 19, 2015 9:07 pm

With draw do you mean visually?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Dec 19, 2015 9:19 pm

@LittleStain

Meaning hypothetically, just mark an area (invisible) using events, an offset that could encompass not only the sprites size misplaced a certain amount of pixels, rather a range even up to twice the size of the objects dimensions (in one axis), as to replace a manually pinned sensor.
Brick by brick, stone by stone.
B
52
S
24
G
17
Posts: 273
Reputation: 12,663

Post » Sat Dec 19, 2015 9:47 pm

I guess using a distance check followed by an is overlapping at offset check would do the trick..
Ofcourse you could always use a loop, but Using the distance check first would prevent unnescessary checks..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: marcoscodas and 9 guests