"Towers" + shots [#2 Tower Defence in GameMaker ] |
|
This is the 2nd video in a short Tower Defence series made in GameMaker.
After we established enemy spawning and their redirection we need to have the Tower Defence part ready. So we need towers that shoot, which we do here by houses. The houses have an alarm looped and check if there is any instance of the enemy in game plus if the nearest enemy is in range. If these conditions are met we fire off a fast moving shot creates an explosion on impact with the enemy. That's it! π§ For the future: This series will have 3 videos where all the basics are setup and a 4th optional one where constructors are used as a solid spawning setup. The project can be downloaded and since it is ultra small, is free to use (graphics are free also, check out the notes) π»Project + assets found here: https://1up-indie2.itch.io/free-tower-defence-project-gamemaker overworld graphics: Beast CC0 https://opengameart.org/content/overworld-grass-biome Enemies: ThKaspar Orga by https://opengameart.org/content/micro-character-bases-basics explosion: JROB774 CC3by https://opengameart.org/content/pixel-explosion-12-frames π 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) CHAPTERS ------------------------------------------------------------------------------------------------------- 0:00 What we will do 0:27 Subscribe 0:40 The concept what we do 1:44 Creating a bullet instance, destroy after 4 seconds 2:40 Resize the bullet 3:21 Setup the collision of the bullet, give spawn hp/health 4:39 Setup an explosion instance 6:02 Create a shooting house/tower with an alarm 7:32 Shoot a bullet in the house/tower and shoot at nearest spawn 11:10 Create an explosion on bullet spawn collision 12:08 Limit house/tower by an attack range |