Cheking for obstacles

Get help using Construct 2

Post » Sat Nov 17, 2012 1:23 am

Hi,

How can I check if there is an obstacle between point A and point B and based on that check execute or not execute an action?

Thanks
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Sat Nov 17, 2012 1:59 am

I think this is a good starting point:

http://www.scirra.com/forum/c2enemy-line-of-sight_topic45095.html

It places a sprite as a line between the 2 points, using it to detect overlap with any obstacles.
B
157
S
114
G
8136
Posts: 42
Reputation: 4,076,739

Post » Sat Nov 17, 2012 3:50 am

Thank you for your help, but I already solved it :)
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 16 guests