Update: Guard Detection

 

GuardDetection_Code

Above is the code to create the detection area and trigger area.

It was simple, but I needed to learn how to draw a rectangle on screen and not delete the object while doing so. Then how to apply collision.

I used the new detectorArea function on the Guard_Redisgner obect in a place_meeting statement, which looks for the detectorArea, instead of the Object.

CheckingIfPlayerIsColliding

This is it in action:

 

Leave a comment