Back to Browse

GMS2 Tutorial - Enemy AI - Ships Shoot Back - GameMaker Studio 2 Tutorial

9.5K views
Mar 20, 2017
24:31

Hello everyone, in this GameMaker Studio 2 Tutorial video we'll take a look at one way to create enemy AI. I'll show you how I made another enemy ship that will fire lazers back at the player instead of going kamekazi into the player. There are hundreds of ways to do this and this is a very simple method. In future videos we'll look at how to do this using the physics engine, but in this game we're not using physics. Instead we're using a practical application of built in keywords and functions. Some of this is review for those who missed other episodes, but there are some new functions as well. We create a new sprite and animation from a previous one using the duplicate function built into the engine. We also duplicate some objects and change them to allow them to work differently. Like the enemy ship object and the player's lazer object, which gets reworked to go from the new enemy ship to the player, with a slower speed and more variance. You can tweak all of these numbers to manipulate the difficulty of the game. In this GameMaker Studio 2 Tutorial series we're going to look at all aspects of being a solo indie dev. We're going to learn how to program using GameMaker Language(GML), how to make your own sprites, animations, sound effects, background music, tilesets, and basically everything related to making a game as a one person game studio. We're going to do all of this, one small step at a time, by learning one thing at a time. Eventually after making several simple (and probably crappy) games, we're going to try to make a game we can sell to make money. This should be a long running series and I'll try to make these tutorials modular, so if you miss one of these tutorials you won't be completely lost on the next few tutorials. I'm designing these tutorials to tackle a few simple things in each video (or maybe one big thing) so that you can hop around the playlist to freshen up on something you forgot how (or never learned) how to do if you get stuck. I hope you enjoy the GMS2 Tutorial series. If you've enjoyed this video please consider giving it a Like, Favorite and share. You could always Subscribe to the channel if you haven't already and as always, thanks for watching and we'll see you in the next video! :) DG Discord Server: https://discord.gg/YcxySsj Website: http://driftwoodgaming.com Twitch: http://www.twitch.tv/DriftwoodGaming Twitter: http://www.twitter.com/DriftwoodGaming Patreon: http://www.patreon.com/DriftwoodGaming ------------------------------- Special thanks to all my Patrons: Damian Floyd, Fun4theBrain, David Philips, Studio Blue, Battle Pisces Gaming, Michael Flynn, John Gibson, ChrAndGow, Scott Zarwell, Edwardo Santizo, NeoSoulGamer, Jai R Fisher, Rusty_Gears, Meteodros, R.A.M, Valryia, DarkKrow13, StalkerRoguen, Ervin Mcclure, Chris Van Essen, Mithrandir, Michael Noles and those of you who have supported me in the past.

Download

0 formats

No download links available.

GMS2 Tutorial - Enemy AI - Ships Shoot Back - GameMaker Studio 2 Tutorial | NatokHD