An object detecting another object?

Hello to GS community,

I have been banging my head trying to come up with a way to implement one awesome feature in my game.

I would like to have an object (e.g a red square 12x12), which detects another object. For example, the objective is to the right of the main actor but it can't be seen at that moment because it is, let's say 1500 pixels to the right. It should be something like an object giving you direction where the objective is and always showing you the right direction as you move around the map. I imagine the "red square" to be a part of a circle which is invisible around the main actor.

Does anyone have any ideas how to code that thing?

Thank you.

Comments

Sign In or Register to comment.