Okay, what I wanted to do was make Metal Gear Solid style game (more like a level and expand from there) based off of The Classroom.
I’ve got the movements, obstacles and all that down but I was wondering how the field of vision was done.
I imagine this is a cone in front of the enemy with a hit test on the main character. Could someone confirm or if I’m wrong what would be the best way to make it.
I was also wondering how the “safe spots” would be done and if the enemies movement is just looped tweens (I’m mostly looking at level 2) or not.
i think the field of vision would have been done like this:
1st. produce your character!
2nd. get the distance from the Teacher character to the Pupil character.
3rd. if this distance is less than a certain number, test for:
4th. the angle of the pupil from the teacher being within a certain range