Game Maker Studio 2: Tower Defense Game 1/3

  Рет қаралды 66,958

RealTutsGML

RealTutsGML

6 жыл бұрын

Thank you for watching & have fun learning!
Full source code and courses www.codingmadesimple.com/
Follow me on twitter for updates / realtutsgml
• Game Maker Studio 2: T...

Пікірлер: 89
@Thulipa3
@Thulipa3 8 ай бұрын
BRO U ARE A FRICKING LEGEND!!! This is one of the best Game Maker tutorials I've ever seen! You have no idea how much this is helping me. ❤
@devinmedina9611
@devinmedina9611 6 жыл бұрын
Hey, I have been watching your videos for quite a while. I have never gotten the chance to thank you for getting me into game development. I am only 14 and I was inspired by you to create games. I am currently working on a project that I have Been working at for two years and you tutorials have helped me a great amount. Thank you.
@LegendaryWizardPS
@LegendaryWizardPS 6 жыл бұрын
When will it be out?
@randomgamesforu9355
@randomgamesforu9355 3 жыл бұрын
I like this I am also making a game
@JonathasCosta
@JonathasCosta 2 жыл бұрын
Direct to the point. Congratulations, awesome video.
@crystaluniverse9998
@crystaluniverse9998 2 жыл бұрын
Thank you, you might be why i get to stay in my dream school and make games for a living!!!
@patrikabc123
@patrikabc123 5 жыл бұрын
For all of you that doesnt get enemies to show up. Take notice of the order of the Layers in the "room editor". The instance layer needs to be first, followed by tiles and then path and background.
@johnsalisbury2294
@johnsalisbury2294 5 жыл бұрын
Thank you!
@shadowninji149
@shadowninji149 3 жыл бұрын
Thank you so much i was confused!
@soldadoblanco8331
@soldadoblanco8331 2 жыл бұрын
still doesn´t work
@charlieschaff4863
@charlieschaff4863 2 жыл бұрын
@@soldadoblanco8331 did you figure it out I need help
@soldadoblanco8331
@soldadoblanco8331 2 жыл бұрын
@@charlieschaff4863 I gave Up and install unreal engine
@tylermayes
@tylermayes 2 жыл бұрын
Great tutorial. thank you.
@PangoriaFallstar
@PangoriaFallstar 6 жыл бұрын
So, one thing I kinda would rather do than set global variables. One big thing I like about having a spawner the way you have it set up is that the spawner can create the objects and pass in variables. So when you have the instance_create_depth(), if you set it as: enemySpawned = instance_create_depth(x,y,-1,oEnemy); you can then further down in that same if statement use: with enemySpawned { hp = 100; spd = 1; path_start(etc) } Now it means you have to have those things set as a default first before spawning. This may be more of a personal preference. I'm not a fan of having global variables. This would also allow you to have different spawners up at the same time, each on a different path and have them not interfere with each other. Since they aren't pooling their data from a global variable.
@RealTutsGML
@RealTutsGML 6 жыл бұрын
Great tip! You can definitely do that as well
@nykerc5127
@nykerc5127 6 жыл бұрын
Hey your code helped me alot, i will try using it to build this tower defence guide, anyways if i play the game in this current state the spawnrate does not increase as it should...
@luisadrian185
@luisadrian185 6 жыл бұрын
Are a tutorial to make a game like plants vs zombies?
@ZzeroDev
@ZzeroDev 6 жыл бұрын
I keep getting *_unity_* ads before the *_gamemaker_* video begins
@playnthink1210
@playnthink1210 5 жыл бұрын
Coding your own games is easier than you think!
@Sagitta62
@Sagitta62 5 жыл бұрын
ARG, shoot me in the face Please No!, no it is not! over 20 years of learning C/C++, Learning anything new is hard YouKnow! He is lying to your face (Give me your money is what he is saying)
@Evoleo
@Evoleo 5 жыл бұрын
@@playnthink1210 You know, you should take this online Unity course on Udemy.
@johnroberts8088
@johnroberts8088 5 жыл бұрын
​@@Sagitta62 Ha ha, exactly how I feel, the problem it causes for me is with non technical coworkers, it's been drilled into them that "coding is easy", "coding is for everyone" and I always get "my 4 year old has started coding", then they look at me really confused as to why something might take a while as if you are a complete idiot. Another classic was someone said "I'm going to learn JavaScript next week, but in the meantime can build this as I don't have time", from someone with no programming experience at all. Anyone that has ever had to put a lot of effort into anything knows that very few things in life are "easy".
@xrtitan3252
@xrtitan3252 2 жыл бұрын
Even though i was using Dnd (drag and drop) this was still very helpful. Thank you!
@bonkser
@bonkser 2 жыл бұрын
how do you do the 1 * room_speed with dnd
@rentheredsquare
@rentheredsquare 2 жыл бұрын
@@bonkser right click on the event and click convert to GML
@grapeshott
@grapeshott 6 жыл бұрын
+RealTutsGML How to slow down the speed of particles when there is a slow motion of every object? Room speed should remain same.
@bivisbuns
@bivisbuns 11 ай бұрын
Bro holy shit this helped so much lol, i was trying to teach myself and for getting enemies to move along the path i had the corner pieces of the path covered by invisible objects that would switch directions of enemies that made contact with it
@larryteslaspacexboringlawr739
@larryteslaspacexboringlawr739 6 жыл бұрын
thank you for gamemaker video
@tommybloomfield6690
@tommybloomfield6690 6 жыл бұрын
this is like the only tower defense video on gamemaker studio 2
@eb2k445
@eb2k445 5 жыл бұрын
Where can I find a tutorial for a puyo puyo like game?
@owencui5270
@owencui5270 6 жыл бұрын
So, I created the game, and everything is fine until about level 23-24. Then, all of the enemies start spawning really close together and it gets impossible to beat the level. After they get past, no more enemies spawn and you have to close the game. Do you know why? And also, if I want to create more levels, do I need to make a new path? Because if I change path 1 in the second room, it also changes the path for the first room.
@owencui5270
@owencui5270 6 жыл бұрын
Actually, the enemies just stop spawning after I think room 24.
@DOOMchaoslord
@DOOMchaoslord 5 жыл бұрын
for some reason the enemy object will not spawn into the field and instead, I just have a room... not sure of what I have done wrong.
@charlieschaff4863
@charlieschaff4863 2 жыл бұрын
2 big things one I made the mistake of doing spawn_amount < spawn_amount. When it should be. spawn_count < spawn_amount
@andreasnara
@andreasnara 4 жыл бұрын
after my tower defeated all of my enemy, it did spawn again, but there's only one enemy for one wave, it's not spawning to 5, help idk what went wrong
@user-jp1mo7mv5e
@user-jp1mo7mv5e 3 жыл бұрын
thanks a lot 😉
@SergeiVlassov
@SergeiVlassov 2 жыл бұрын
Nice! But had to put Path1 in the line " path_start(Path1,global.spd,0,1); " to make it work
@sakshamsahu9222
@sakshamsahu9222 5 жыл бұрын
Ummmm!!! My enemies just dont spawn :( IDK why Any HELP plz :3
@DavidAdochiti
@DavidAdochiti 4 жыл бұрын
easy fix, JUST DELETE THE PROJECT AND MAKE A NEW ONE
@nathanconstable4633
@nathanconstable4633 6 жыл бұрын
Is this doable on gms 1.4?
@theycallmepapi6804
@theycallmepapi6804 3 жыл бұрын
possible to make an artilery type?
@WolfgangBrozart
@WolfgangBrozart 6 жыл бұрын
I thought my right earphone had gone out but it was just the video
@randomgamesforu9355
@randomgamesforu9355 3 жыл бұрын
But how do u do it in drag and drop
@bonkser
@bonkser 2 жыл бұрын
i just used tile offset to fix the tiles using some of the wrong tile
@seanbrownlee9474
@seanbrownlee9474 3 жыл бұрын
Uhhhh I followed the steps in this tutorial but now my game won't open when I try to test it. What should I do?
@bonkser
@bonkser 2 жыл бұрын
does it say that 2 variables are mentioned once in syntax errors?
@cheesefuzz1992
@cheesefuzz1992 Жыл бұрын
Currently at the path_start(path0,global.spd,0,1); part and when he says to run the game it gives me an error on that line.
@Dutchyuri
@Dutchyuri Жыл бұрын
i did everything he said it didnt work but when i made the p in path uppercase i all worked!
@exoticbutr1690
@exoticbutr1690 2 ай бұрын
make sure you've put spaces (example: path_start(path1, global.spd, 0, 1))
@rwoooosh3748
@rwoooosh3748 5 жыл бұрын
i want to make a td game where the enemy is killed it turns into a weaker enemy like bloons td
@alyxzthezera8752
@alyxzthezera8752 5 жыл бұрын
Make a instance self-transformation code instead of simply "deleting" it like some others do for when a instance "die". All the traits are inherited anyways, since you're changing the object into a weaker version, and that goes all the way until you hit the "red bloon" phase, where, then, it gets destroyed.
@altbrain6002
@altbrain6002 Жыл бұрын
Does anyone know why the path_start(path0,global.spd,0,1); doesn't work?
@dmnotes
@dmnotes 5 ай бұрын
check capitalization on your 'path'. Make sure the code, and the path itself have the same case. Once I changed the path name to have a lowercase 'p', it worked. Should also work if you change the code to have a capital "P". Basically, as long as they match up you should be good to go.
@Kleshtrem
@Kleshtrem 6 жыл бұрын
fantastic tutorial. just super frustrating that nothing spawns. I've checked the code several times with the video and nothing happens...
@FranciscoacBatista
@FranciscoacBatista 6 жыл бұрын
i have the same problem did u figured it out ?
@corliss3674
@corliss3674 5 жыл бұрын
Me to and now im starting to get really upset because this is the only tower Defense game tutorial for game maker studio 2 😭😭
@corliss3674
@corliss3674 5 жыл бұрын
HEY! I just figured it out! im not to sure if this is your problem but it was mine so the first line of code in the enemy was path_start(path0,global.spd,0,1); but i made path1 and path0 so the path on my screen was path1 not path0 so i put in path_start(path1,global.spd,0,1); and then the enemys started to move!
@kingofspades9720
@kingofspades9720 5 жыл бұрын
I have a few fixes, First, did you add your sprite to your enemy object Next is your instances behind your tileset in the room
@burnttoaster431
@burnttoaster431 2 жыл бұрын
@@corliss3674 thanks so much!
@asentenceisnotausername.799
@asentenceisnotausername.799 6 жыл бұрын
It won't pull up the code
@exoticbutr1690
@exoticbutr1690 2 ай бұрын
followed this tutorial and i have a single issue of it's only spawning a single enemy
@mrh4ck964
@mrh4ck964 5 жыл бұрын
It did not work the spirits for me messed up )=
@LeroyCochlovius
@LeroyCochlovius 6 жыл бұрын
When are you uploading the next episode
@connorburbine9459
@connorburbine9459 4 жыл бұрын
It's out
@creepermax4167
@creepermax4167 2 жыл бұрын
@@connorburbine9459 Look when the comment was made...
@Cardifyz
@Cardifyz 6 жыл бұрын
room_speed is deprecated you now have to use "spawn_rate = 1 * game_get_speed(gamespeed_fps);"
@zamu6713
@zamu6713 6 жыл бұрын
Or just type 30, means one second in step...
@Cardifyz
@Cardifyz 6 жыл бұрын
That's hard coding if you change the game speed at anytime then you would need to change that as well. I'm just trying to be helpful :D
@tazzy4198
@tazzy4198 3 жыл бұрын
i cant get to the code
@charlieschaff4863
@charlieschaff4863 2 жыл бұрын
I could use some help the enemy’s are not spawning
@Nick_Whiskey
@Nick_Whiskey 3 жыл бұрын
This doesn't work. Enemy objects are not spawned and do not follow the path, despite having everything identical to this video.
@mrcrabe_concordia
@mrcrabe_concordia 2 жыл бұрын
666 likes, perfect
@boogiestreet594
@boogiestreet594 6 жыл бұрын
Hey dude, i don't have time to watch the whole video, but i've been wondering for ages, how much more work would it be to make a copy of this game, it's called "Vector TD". Its the same idea as what you've apparently made here but alot more in depth. How would i add in the cool graphics from this one, and how would i program different guns? Here's the game, can you give me some tips of if it's possible, and what i'd need to do it, such as graphics and the ability to make 4 different colored gun types? www.arcadeboss.com/game-175-9-vector-td.html
@koren_dobra
@koren_dobra 3 жыл бұрын
Совсем детская задача.))))
@Nualiini
@Nualiini 2 жыл бұрын
Who else is here to create Bloond TD 7?
@athosarnourleal4762
@athosarnourleal4762 3 жыл бұрын
nossa só os ingres
@nightingale4267
@nightingale4267 2 жыл бұрын
15:17
@ChaiKirbs
@ChaiKirbs 5 жыл бұрын
your website is broken
@user-nn8zg8vd5w
@user-nn8zg8vd5w 5 жыл бұрын
I am russian, On this no f**king way not understood)
@creepermax4167
@creepermax4167 2 жыл бұрын
Зачем тогда смотрел/смотрела ._. Написано же по английскому
Game Maker Studio 2: Tower Defense Game 2/3
21:25
RealTutsGML
Рет қаралды 29 М.
Game Maker Studio 2: Tower Defense Game 3/3
20:18
RealTutsGML
Рет қаралды 27 М.
孩子多的烦恼?#火影忍者 #家庭 #佐助
00:31
火影忍者一家
Рет қаралды 21 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 6 МЛН
What Makes Tower Defence Games Good?
21:31
RealityEscape
Рет қаралды 1,2 МЛН
Optimisation Tips | GameMaker Studio 2
19:10
FriendlyCosmonaut
Рет қаралды 49 М.
GameMaker Studio 2.3 - How to Create and Use Tile Sets + Auto Tiling
12:30
Let's Learn This Together
Рет қаралды 44 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 3,9 МЛН
How to Make a Good 2D Camera
11:38
Game Maker's Toolkit
Рет қаралды 387 М.
GameMaker Studio 2: Isometric Game Tutorial
35:44
Shaun Spalding
Рет қаралды 109 М.
TOWER DEFENSE TUTORIAL in GMS2 - PART 1: MONSTERS on PATH
22:42
Caz Creates
Рет қаралды 6 М.
Making a Farm-Themed Tower Defense Game in 48 Hours - GMTK 2023 Devlog
10:40
Object States | Game Maker Studio 2
22:21
FriendlyCosmonaut
Рет қаралды 133 М.
孩子多的烦恼?#火影忍者 #家庭 #佐助
00:31
火影忍者一家
Рет қаралды 21 МЛН