1. You need a sprite (cone sprite) this will be the "view"
2nd. make 2 objects(obj view and the obj you want deactivated)
3rd put this in obj_view's step event
direction=Yourplayerobj.direction x=Yourplayerobj.x y=Yourplayerobj.y image_angle=direction"Yourplayerobj"is your player object(just rename it)
4rth put this in your other object
if place_meeting(x,y,yourviewobject)
{
"your draw code"
}
"yourviewobject"is your view object
"your draw code" is all the code in the draw event of the object that should disipear if player is not looking at it
Edited by SoulTaker0227, 01 July 2012 - 01:16 PM.











