The Classroom - Enemies With Sight

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.

Thankyou.

convienently titled [url=“http://www.kirupaforum.com/forums/forumdisplay.php?s=&daysprune=&f=42”]Game/AI Programming

dont spose you coulda tried posting in there first? (coz thas wer this thread really belongs… ;))

Prophet.

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

… and that’s exactly how i did it. hope this helps you - now i’m going to make a game out of it.

And that’s exactly how i did it… now i’m away to make a game of it. maybe tomorrow though.

hope this helps!

it certainly looks like the movement is looped tweens

Thankyou, this is exactly what I was looking for. Thankyou.

Prophet: I’ll remember to put these posts in the Game forum next time.

:slight_smile: you do that :wink:

ta

Prophet.