darijs1
Member
i didnt know where to post this, my appologies if this is the wrong section.
----------------------------------------------------------
Once upon a time.... (you can skip this part)
----------------------------------------------------------
im working on this small top down shooter game, and im trying to make my npcs approachable from the back so they dont see the player.
basically at the moment, the my obj_enemy is an npc that runs after and attacks me if im within the range ive set. so i wanted to make it a bit more advanced and create a FIELD OF VIEW for the npc, so that it attacks only if im inside the enemys FIELD OF VIEW.
i tried my best and failed.
-----------------------------------------------------------
DETAILS
----------------------------------------------------------
so far i have obj_enemy as the npc, obj_player as the player, and obj_eyesight as the intended FIELD OF VIEW.
im also very new to coding in game maker....just to put it out there.
---------------------------------------------------------
PROBLEM
---------------------------------------------------------
all i really need is to know how to stick obj_enemy and obj_eyesight together and make obj_eyesight be directed to where the obj_enemy is looking (obj_enemy is patrolling around the map, and rotates to his directions n sht).
then i shouldnt have much problems tweaking the collisions with obj_eyesight and the player.
--------------------------------------------------------
Any help, tips and ideas would be very much appreciated.
----------------------------------------------------------
Once upon a time.... (you can skip this part)
----------------------------------------------------------
im working on this small top down shooter game, and im trying to make my npcs approachable from the back so they dont see the player.
basically at the moment, the my obj_enemy is an npc that runs after and attacks me if im within the range ive set. so i wanted to make it a bit more advanced and create a FIELD OF VIEW for the npc, so that it attacks only if im inside the enemys FIELD OF VIEW.
i tried my best and failed.
-----------------------------------------------------------
DETAILS
----------------------------------------------------------
so far i have obj_enemy as the npc, obj_player as the player, and obj_eyesight as the intended FIELD OF VIEW.
im also very new to coding in game maker....just to put it out there.
---------------------------------------------------------
PROBLEM
---------------------------------------------------------
all i really need is to know how to stick obj_enemy and obj_eyesight together and make obj_eyesight be directed to where the obj_enemy is looking (obj_enemy is patrolling around the map, and rotates to his directions n sht).
then i shouldnt have much problems tweaking the collisions with obj_eyesight and the player.
--------------------------------------------------------
Any help, tips and ideas would be very much appreciated.