Hotline Miami Remake
Hotline Miami Remake in GameMaker Studio #29 – Enemy cone of sight
The video tutorial shows you how to make a pseudo cone of sight in GameMaker Studio. The idea is quite simple, you have an ideal direction from the enemy to the player and you can only deviate (in this video 15 degrees) by a set value. If yes, set the enemies aggro value “I_see_you” until it hits below 0. Then the Ai of the enemy kicks in.
For the future: This series will end after the ai is in a good state and we will do the requested revolving doors also. After that, this series goes into maintenance mode and is offically over. The itch.io project will be updated then to the up to date version (when I finish the ai) and will be advanced/refined a bit more. This little extra will be not part of the series.
Path finding with mp_grid:
https://youtu.be/gqzsBhb7ov4
Project + assets found here: (will be updated once the state machine is done)
https://1up-indie2.itch.io/hotline-miami-clone-project-sprites
👑 Support me and get fresh game art and game maker projects every month:
https://www.patreon.com/1upindie
Follow me on:
📸 Instangram: https://www.instagram.com/1upindie
🐦 Twitter: https://twitter.com/1upIndie
💬 Discord: https://discord.gg/gvr98nb
📜 Udemy: https://www.udemy.com/course/become-a-video-game-developer-with-gms-23/ (See youtube about page for discount)
0:00 Explaining what we will do
0:47 Subscribe
0:59 Step1 – Small changes to the angle of the sprite
2:16 Step 2 – Concept explained
3:01 Step 2 – Reset the aggro value “I see you” when walkin back
4:19 Step 3 – Concept explained
5:26 Drawin for debug mode the cone of sight
8:15 Step 3 – Only trigger the enemy ai when in cone of sight
Add comment