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
Develop games in your browser. Powerful, performant & highly capable.
I think this is a good starting point:
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.
Thank you for your help, but I already solved it :)