Detection behavior

Several times when making games I’ve had to create a new object just to use proximity at a certain location.
For example, when I made the knight in chess, I had to spawn an object when checking for pieces, because only a specific location needed to be checked. If there was a behavior to use proximity at a location different from the current objects position that would be pretty cool and make things easier.

chess game with the knight


How about when clicking on a piece, you spawn a detector at every location that piece can go and highlight the areas. Delete the detectors instantly, and remove the highlight when the piece is moved or if you unselect it.