GameMaker: Pointing to an off-screen object


This intermediate example demonstrates, how to create a rather nice interface element being an arrow that points between a on-screen object (normally player) and a off-screen location, that needs to be reached. In this case, arrow indicates exact direction to target, and is made to clamp accurately to screen edges (preserving direction vector), to avoid confusion on behalf of player.
Such feature is specifically useful for exploration games, where goal(s) may be at different distance from player, and some guidance is required.


Related posts:

2 thoughts on “GameMaker: Pointing to an off-screen object

Leave a Reply

Your email address will not be published. Required fields are marked *