Contra style turret [Game Maker Studio 2 | Enemy Ai]

Channel:
Subscribers:
12,200
Published on ● Video Link: https://www.youtube.com/watch?v=lHSidYF8zxg



Category:
Tutorial
Duration: 11:06
1,574 views
80


This enemy ai video tutorial shows you how to make a contra style turret that rotates slowly towards the player in GameMaker Studio.

The idea is quite simple. You first define a distance towards the player on when entered the turret starts to rotate toward him. Because we don't want an instant rotation we delay the rotation. Then when we are in a good enough angle towards the player we can start shooting. That's it!



👑 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)

Totally not mario and boomerang found here:
https://opengameart.org/content/admurins-general-items
https://opengameart.org/content/super-miyamoto

--------------------------------------------------------------
0:00 What we will do
0:46 Subscribe
0:59 How it works
2:05 Coding part
10:51 Game shown - The massenger







Tags:
game maker tutorial
game maker studio tutorial
gamemaker studio 2 tutorial
game dev
game developer
gamemaker angle difference
gamemaker angle direction
gamemaker studio angle direction
gamemaker studio 2 angle
gamemaker studio 2 get angle difference
gamemaker angle_difference
gamemaker rotating turret
gamemaker studio 2 tower defense tutorial