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:

 

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s