How To Make A Classic Arcade Game in GameMaker

  Рет қаралды 370,325

GameMaker

GameMaker

Күн бұрын

Пікірлер: 552
@GameMakerEngine
@GameMakerEngine Жыл бұрын
Tutorial series: 1. Base game: kzbin.info/www/bejne/pKjPp4djgZ6pfMk 2. Main Menu: kzbin.info/www/bejne/i6SYeIaambuYmrs 3. Music and SFX: kzbin.info/www/bejne/hHixe4qmnruGZ68 4. Power Ups: kzbin.info/www/bejne/rpa7pIWIjriEbZo
@Boiabba
@Boiabba Жыл бұрын
Tip: If you want to add WASD movement add the code: or keyboard_check(ord("W")) to the end of each if statement in the movement, replacing W with either W, A, S or D
@your_hyeong
@your_hyeong Жыл бұрын
what is a relative@@Boiabba
@Boiabba
@Boiabba Жыл бұрын
@@your_hyeong what do you mean?
@MrDonutH2O
@MrDonutH2O 11 ай бұрын
i love you bro ive been looking for how to do this@@Boiabba
@AYT456
@AYT456 8 ай бұрын
Add a game over screen with the points and Restart button.
@axa993
@axa993 2 ай бұрын
This took me back straight into elementary school when I was building this on my own in GameMaker 6.1 free version, without an internet connection and only the built-in documentation in the help file. With zero coding knowledge, of course. I've built so many small games back then. Now, as a developer, I can finally come back to this and try building something more palpable.
@logidesigns9058
@logidesigns9058 2 жыл бұрын
This was so simple and straightforward, I can’t thank you enough for making this! I’ve officially made my very first game, and now I’m gonna customize it and add my own sprites and a menu, this was so helpful and educational, thanks again!
@panda__king365
@panda__king365 Жыл бұрын
true
@Slimerror
@Slimerror Ай бұрын
Thanks for the tutorial! This helped me get started with this new engine :) Here are the changes I made to the game... - Movement: you now aim and shoot with the mouse, the W and S key moves you forwards and backwards. In addition to that I added player friction so you slow down naturally. Player accelerates 60% faster and decelerates at 35% acceleration speed. - Shooting: You now shoot towards the mouse. Projectiles move 50% faster. - Asteroids: Big Asteroids take 3 shots to break and when broken become small Asteroids that move and spin 80% faster! Big Asteroids award 50 points and small Asteroids award 25! - Score: Text is larger and green now... Tried adding a power up and got it halfway working but decided to remove it when something messed up causing compiling errors... (May try readding it in the future!)
@pixiechic2209
@pixiechic2209 Ай бұрын
what code is used to make the arrow move with W and S, and the player friction thingy? i’m just starting out so i m still learning😅
@Slimerror
@Slimerror Ай бұрын
@pixiechic2209 same nodes he used before but type ord("W") the friction block is just a block with two blue arrows
@pixiechic2209
@pixiechic2209 Ай бұрын
@@Slimerror tysm!!
@aosphere
@aosphere Ай бұрын
@@Slimerror bruh, meanwhile im trying to figure out how to SLOWLY set the speed value to 0 (and for it not to loop)
@Slimerror
@Slimerror Ай бұрын
@aosphere Is your character zooming across the screen mach 2 at the slightest touch of a button
@ivargu
@ivargu Жыл бұрын
The way you use creative editing and effects in your video to draw attention to and accentuate the points you make, are so sensitively done! Masterful work, thank you!
@HamzaElgendy-t2d
@HamzaElgendy-t2d Жыл бұрын
Wow! this is the best totorial I have ever seen, it explains how to do stuff step by step and tells us why he did what he did. I hope Gamemaker make more tutorials in the futrue.
@strawberrylemonadelioness
@strawberrylemonadelioness 2 жыл бұрын
"Ship goes brr" is an amazing game name
@sreal-iron5898
@sreal-iron5898 7 ай бұрын
for the score system 15:40: make sure you pay attention to lower case or upper case, my files had a "Obj_game" instead of all-lower-case " obj_game" which was enough to cause a problem. a little hint :)
@Aerionix1
@Aerionix1 Жыл бұрын
This was nice. At first I was a bit meh because it wasn't as detailed as the original space rocks tutorial. But it wasn't meant to be. As someone's first exposure to gamemaker and something to build confidence, this is the perfect lesson to get something together and working in under a half hour. Great job man.
@WalterCrumbcake
@WalterCrumbcake 9 ай бұрын
7:14 Little tip for anyone that wants to create a missile or arrow and have it rotate properly when fired: On Create tab under obj_bullet add a third variable with name: image_angle value: obj_player.image_angle. This rotates the sprite itself to match the player when fired otherwise your missiles will fly out sideways. If your player sprite is drawn facing right and missile is drawn facing up, you'll have to offset the angle with rotate instance. Alternatively edit all your sprites to have a consistent facing so you don't need add the extra step.
@Rimmerick
@Rimmerick Жыл бұрын
If anyone else was following this guide and gets an error message after destroying a small rock, I found a fix! At 11:30 in his If Variable, he sets the variable to "instance_number(obj_rock)" which doesn't exist. Changing it to "instance_number(obj_rock_big)" fixed it for me.
@cronoslayer
@cronoslayer Жыл бұрын
Thank you, it worked for me as well!!!!
@ByAnakin
@ByAnakin Жыл бұрын
This happened due to anxiety, because if we pay attention, when he names the created objects, there is no "obj_rock_big" , as he got confused with the names of the Sprites - Calmly rewinding the video, I realized the reasons why the variables were not accepted. .
@VP_SN
@VP_SN Жыл бұрын
thats true becasue i noticed that is well@@ByAnakin
@goobmoobfrrr
@goobmoobfrrr 11 ай бұрын
thank you so much i was going insane bruh
@boxinpimp04
@boxinpimp04 11 ай бұрын
I knew I should have checked comments, I was pulling my freaking hair out over this!
@theovertyrant2620
@theovertyrant2620 Жыл бұрын
I messed around with different software and made game with each of them but I think this is the one I'm going with, you guys have really done something incredible with visual code.
@PixlPixl
@PixlPixl Жыл бұрын
Hi, I'm sorry, I just did exactly as you on 9:10 but the rocks are not rotating. I don't understand why we put the "assign variable" value of 1 to rotate the big rock in "outside room" ? Can you explain to me please ?
@radi4nt_
@radi4nt_ Жыл бұрын
yooo pixl i watch ur vids
@PixlPixl
@PixlPixl Жыл бұрын
@@radi4nt_ Hi ^^
@radi4nt_
@radi4nt_ Жыл бұрын
@@PixlPixl Did you manage to fix the problem?
@morimoko
@morimoko Жыл бұрын
make it relative that was it's always increasing by 1 relative to it's current angle
@beany246
@beany246 Ай бұрын
Thanks for a fast yet very clear explanation. Good to see both sets of code. Much appreciated 2 years after you made it!
@RhoTrepaan
@RhoTrepaan 2 жыл бұрын
oh wow. gml visual AND gml code at the same time 😀 and very good explanations that go with it. thanks!🙏
@CoyoteArcade-182
@CoyoteArcade-182 Ай бұрын
i just want to say you are a great teacher , ive been looking for a good tutorial to learn this engine and you give both coding options helps a lot
@MJonBenj
@MJonBenj 2 ай бұрын
This instructor is great! Very understandable for a complete beginner!
@GameMakerEngine
@GameMakerEngine 2 ай бұрын
He is!
@nobetternickname
@nobetternickname 9 ай бұрын
very concise and understandable! I followed along and everything made perfect sense. Thanks! See you in the next video
@learningscratch-te5vo
@learningscratch-te5vo 6 ай бұрын
jfdlkfjdklajfdlkajfldjfdjljfdlajfdljalkfjdlsajflk;djlkf;jldksjaf;lkdjaf;lda
@learningscratch-te5vo
@learningscratch-te5vo 6 ай бұрын
jfdl;asjfldkajf jdlafjdls fjldajfkldja;lfa
@CT2507
@CT2507 10 ай бұрын
Watching the visual scripting in the left and the GML code in the right at the same time is a brilliant idea! Make more like these!! :))
@GameMakerEngine
@GameMakerEngine 10 ай бұрын
The latest Bounce or Break Make a Game series is the same :). You can find it on our channel home page or through a search :)
@garrettharney9573
@garrettharney9573 Жыл бұрын
this video rules and the tutorial and teaching style is incredibly straightforward, but not hand holdy, and encouraging. thank you!!
@TRAVELERVAT
@TRAVELERVAT 4 ай бұрын
The score system makes my rock code send an error, so I had to remove it, but other than that, everything works. your tutorial was very clear and straightforward, and I like that you explained *why* we were adding certain parts instead of just telling us to do it. That way, I know what I'm adding and why I'm adding it. You're an amazing teacher. Thank you.
@GameMakerEngine
@GameMakerEngine 4 ай бұрын
So glad you found it useful! Thanks Travelervat. Also, feedback about why is noted :)
@TRAVELERVAT
@TRAVELERVAT 4 ай бұрын
No problem! Couldn’t agree more!! :D
@kyravanmeijl731
@kyravanmeijl731 2 ай бұрын
I found that in my version of GameMaker the function is not called Point, but Score. Hope this helps \
@TRAVELERVAT
@TRAVELERVAT 2 ай бұрын
Oh, thank you sm!! Next time I open GameMaker, I'll look for that!!
@cmdtrigun
@cmdtrigun 3 ай бұрын
I thought this was a really great intro tutorial for GM. I personally found the web article easier to follow at my own pace, but I'm sure other people prefer the video!
@ni4ni775
@ni4ni775 2 жыл бұрын
Thanks for sharing.... these are the projects I enjoy learning with my kids.
@Keat.3a
@Keat.3a 4 ай бұрын
I have an issue at 7:40. I keep getting an error message after running the game
@danielgrezda3339
@danielgrezda3339 6 күн бұрын
Me too, looking for a solution, will report back if I find it.
@ShahriarahmedShobdo
@ShahriarahmedShobdo 9 ай бұрын
today i downloaded the GameMaker. And this was the first tutorial i've found. And made a game the day i just downloaded it! thanks for this amazing video!!
@GameMakerEngine
@GameMakerEngine 9 ай бұрын
Amazing :)! Congrats getting your first project under your belt
@kenzuleisti2779
@kenzuleisti2779 Жыл бұрын
Thank you for this, first gamemaker tutorial I have ever completed! Very nice. Even realized I needed to copy paste that one line of code before you said I needed to.
@Plot79B
@Plot79B 5 ай бұрын
Excellent introduction to GM, one idea for new makers is to add a Hyper Space button to randomly move the ship to a diffrent location. So adda new key press event and random change the ships X and y value based on the rooms max x and y.
@WOLFVR455
@WOLFVR455 9 ай бұрын
i love when there is a text that says wait rock, pls come back don't leave
@mrunknown6842
@mrunknown6842 Жыл бұрын
Thank you so much for making this video, this must have been made after an update of some kind because back then motion add wasn't a thing, it didn't exist, the new way of coding all this is so much easier than a 5 part series like I had to watch before all these updates, this video is great.
@GameMakerEngine
@GameMakerEngine Жыл бұрын
Glad you enjoyed it! Indeed the Add Motion action is new and was added to make it easier to make movement like this. Happy GameMaking!
@JakeGDJakeGD
@JakeGDJakeGD Жыл бұрын
Hi :)
@StreamingInSeattle
@StreamingInSeattle 2 ай бұрын
That was a really enjoyable simple tutorial --- Super stoked to start working on these more!
@GameMakerEngine
@GameMakerEngine 2 ай бұрын
Let's goo!
@gfddgitgud3848
@gfddgitgud3848 3 ай бұрын
awesome that alarm function for sending signals to game restart is awesome!!!
@RageBird7200
@RageBird7200 Жыл бұрын
That had INSANLY good directions! Thank you soo much for making this video, as it'll help me make other games in GameMaker Studio!
@IamTooLateForThis
@IamTooLateForThis Жыл бұрын
Try keep pressing W till you go faster than The Flash, took me some time to fix that
@RageBird7200
@RageBird7200 Жыл бұрын
I know that bug.@@IamTooLateForThis
@secfeed6987
@secfeed6987 Ай бұрын
wow, great tutorial, perfect for beginners. Explained well.
@CreativeSteve69
@CreativeSteve69 2 жыл бұрын
Thanks for finally posting bite sized tutorials. I am saving this for later to treat myself into on watching later. :D
@IAmBlix
@IAmBlix Жыл бұрын
this was amazing, I think I missed a bit bc I saw no way to go back, but this tutorial made it easy to figure out how to do backwards movement
@GameMakerEngine
@GameMakerEngine Жыл бұрын
Glad it helped!
@junvas
@junvas Жыл бұрын
Thank you. I haven't program since high school. Started playing games lately decided to learn game making.
@kodev.mp4
@kodev.mp4 8 ай бұрын
6:20 shooting 8:12 moving rocks 9:28 destroying rocks 14:19 score system
@closeFAMILY901
@closeFAMILY901 7 ай бұрын
bro your videos are really really useful😉😉
@xendordawnburst9969
@xendordawnburst9969 9 ай бұрын
Just by this tutorial alone, I definitely am looking forward to getting started with this! Thank you!
@GameMakerEngine
@GameMakerEngine 9 ай бұрын
@pierregrobbelaar9116
@pierregrobbelaar9116 Жыл бұрын
Man this was so helpful. You can be sure I will review this video if I get stuck somewhere. I am really bad with names I do understand variables tho as I am not a coder but I can read code. Edit: I actually took it a little further and gave sound effects to my bullets. Well It's a shotgun sound but hell I am from South Africa, Shotguns is our answer for everything 😀
@philipsheard624
@philipsheard624 Жыл бұрын
Exactly what a beginner needs to get started, Thank you x
@Remi_N
@Remi_N 6 ай бұрын
Awesome video, thank you very much! If someone is interested, you can get random rocks rotation by adding a new variable in the obj_rock "create" event : _speed_rotation = random(3) Then, modify the "image_angle" in the step event to "image_angle += _speed_rotation;" You will have rocks rotating with a variable speed, up to 3/frame :)
@iamaguy87
@iamaguy87 6 ай бұрын
I'm new to this. How are you doing this, step by step? I followed all the video instructions and my rocks don't spin.
@Feargann
@Feargann 5 ай бұрын
@@iamaguy87 Check the "Step" event for obj_rock; did you assign the variable "image_angle" or did you accidentally assign it to "image_alpha"? Autocomplete error that's easy to make. Edit: Another possibility is that you didn't check "Relative" in the "image_angle" assign variable within the obj_rock "Step" event.
@bahamutaxiomx8706
@bahamutaxiomx8706 Жыл бұрын
Pretty good tutorial. The double sided visuals for both of the coding styles is impressive. I coded something and actually understand some of what I've done! The only thing I don't understand is why my points won't go up. I've checked the code many times and just can't figure it out.
@JonaxogRoaldseventyr
@JonaxogRoaldseventyr Жыл бұрын
i have the same problem have you figured it out please tell me then
@helloimxxile969
@helloimxxile969 Жыл бұрын
in obj_rock have you checked the "relative" box for the assign variable?
@bahamutaxiomx8706
@bahamutaxiomx8706 Жыл бұрын
@@helloimxxile969 No, I’ll have to try that!
@roryevitts3834
@roryevitts3834 Жыл бұрын
this has been my first ever game!
@4hire565
@4hire565 8 ай бұрын
Thank for that bud, got my first jump in the Gamemaker.
@lazylight007
@lazylight007 Жыл бұрын
Matharoo, you make good tutorials, your editing and style makes it easy to follow.
@ThatGamingJay
@ThatGamingJay 5 ай бұрын
I think its weird that you play with the arrows and shoot with mouse, maybe change that cause it is more comfortable/nice to play with. so here is the code for WAD. if keyboard_check(ord("W")) { motion_add(image_angle, 0.1); } if keyboard_check(ord("A")) { image_angle += 4; } if keyboard_check(ord("D")) { image_angle -= 4; } here I changed the arrows for WAD for people that want to change it!
@bunjoe09
@bunjoe09 4 ай бұрын
Good idea, the only down-side I noticed with this is that you can't perform multiple strings at a single time. Meaning, as you turn left while moving forward, you cannot let go of "A" and press "D" to turn right without letting go of the forward movement key "W" (and vice-versa). Basically, using string movement code like this makes the movement feel a little less polished and refined. But it can definitely work if anyone would much rather use WAD movement instead of the arrow keys.
@sangedhlomo8700
@sangedhlomo8700 4 ай бұрын
W
@astralstardust
@astralstardust 7 ай бұрын
This tutorial was great! Thank you for helping me make my first video game!
@GameMakerEngine
@GameMakerEngine 7 ай бұрын
Love this!
@jasonwright2023
@jasonwright2023 4 ай бұрын
would like to know how to create more levels, showing completing level 1 then going to level 2 and making the rocks and enemies harder. But it is a good start to giving basics
@128ko
@128ko Жыл бұрын
Thanks for this great tutorial! GML looks like a really cool language!
@binky777
@binky777 8 ай бұрын
great breakdown into small steps.
@CarloHeimann
@CarloHeimann 6 ай бұрын
At first, my the score system didn't work for me. This was because I had named the variable 'score' and not 'points' like you did in the video. So I renamed the variable to 'points', and it worked. I'm just confused as to why this was - surely the name of the variable doesn't matter?
@PeZdroga
@PeZdroga Жыл бұрын
on the 11:12 part, my instance_copy(true) is not working, it says "GM2022 - Return value of a pure function is not being used", and i'm following the steps of the tutorial
@chisatonishikigi9164
@chisatonishikigi9164 Жыл бұрын
same
@chisatonishikigi9164
@chisatonishikigi9164 Жыл бұрын
I fix it by assigning the instance_copy to a variable: ``` instance_destroy(other); effect_create_above(ef_firework, x, y, 1, c_white); direction = random(360); instance_multiply = sprite_index if sprite_index == spr_rock_big { sprite_index = spr_rock_small; instance_multiply = instance_copy(true); } else if instance_number(obj_rock) < 12 { sprite_index = spr_rock_big; x = -100; } else { instance_destroy(); } ```
@ВалерийГорохов-с5м
@ВалерийГорохов-с5м Жыл бұрын
hello! thanks for the great tutorial, but i have a problem. When i shoot at the small rocks my game crashes, how do i fix it (i did the same way as you imo)
@deansoups
@deansoups 4 ай бұрын
I had the same problem! Here's the fix - In the obj_rock_big collision event with obj_bullet, under the first Else, Set Sprite needs to be "spr_rock_big" In this video, he labelled it "spr_rock" which was a mistake, so if you copied him word for word, it crashes.
@salgado.a7678
@salgado.a7678 Жыл бұрын
11:31 I had to put instance_number(Obj_rock_big). when i put instance_number(obj_rock) game would crash.
@GaryGameDeveloper
@GaryGameDeveloper 5 ай бұрын
That was surprisingly easy 👍
@DanteCorwyn
@DanteCorwyn Жыл бұрын
For some reason I don't have the template for Space Rocks on my version of GameMaker, is there a place to download it from? I recently installed the newest version of GM, don't know if that removed it and the other templates?
@GameMakerEngine
@GameMakerEngine Жыл бұрын
Hi, you should be able to get it from the start screen, after you hit "New". The template screen may show "User Templates" in a drop down menu, so make sure you change that to "All Templates" or "Official Templates". Make sure you are connected to the internet as well.
@DanteCorwyn
@DanteCorwyn Жыл бұрын
@@GameMakerEngine thanks, don't know what happened (I did cycle through the different options), but they're showing now.
@luisledezma5338
@luisledezma5338 8 ай бұрын
In the tutorial when we want to limit the amount of rocks that can appear on the screen when the bullet collides with the large rock, in the "if" you write obj_rock, but we never created the obj_rock in the tutorial, maybe I didn't see it correctly but I wanted to know how to do it
@hackroot7363
@hackroot7363 Жыл бұрын
Who is this guy? I need to subscribe on his channel because he's a good teacher.
@GameMakerEngine
@GameMakerEngine Жыл бұрын
This is Gurpreet, he's GameMaker's tech writer and he makes a lot of our video inhouse tutorials!
@catctus9508
@catctus9508 2 жыл бұрын
Thank you so much I'm new in gms2
@juanpablovaldescontreras5630
@juanpablovaldescontreras5630 Жыл бұрын
Simple and effective. Many thanks (:
@ItsPrimezzz
@ItsPrimezzz 2 ай бұрын
Amazing tutorial
@unnamedhydra4176
@unnamedhydra4176 4 ай бұрын
Great Tutorial. But guys just a tip make sure you have everything spelled correctly. sat there for 15 minutes wondering why i was getting an error. come to find out i spelled game wrong when naming my obj_game object.
@THXRRX
@THXRRX 8 ай бұрын
Thanks ! It's a great tutorial !
@GameMakerEngine
@GameMakerEngine 8 ай бұрын
You're welcome!
@sebbog
@sebbog 2 жыл бұрын
hey you made wordle in an hour so cool!
@MrDonutH2O
@MrDonutH2O 11 ай бұрын
I wanna make it so that the ship has autofire. I know you start with "if key down" so that bullets constantly shoot when the key is down, but it shoots at lightspeed. How do I set the speed to how often this code runs?
@asphodellie
@asphodellie 5 ай бұрын
I followed this with the most recent version of gamemaker, and it doesn't work when I try to run it. it just shows a blank screen, not sure why or what i could have done wrong
@uga31333
@uga31333 3 ай бұрын
yeah i got through the first 14 lines of code and the game wont even open for me lol
@asphodellie
@asphodellie 3 ай бұрын
@@uga31333 k so now it works i don't remember what i did but maybe you haven't put your object into the room.
@uga31333
@uga31333 3 ай бұрын
@@asphodellie yeah no its definetly there. the game doesnt even open
@Toasty3-6-7-9
@Toasty3-6-7-9 Жыл бұрын
when I coded the ships movement and to make move around the screen. all it does is small adjustments, every time I tap the key
@Azoboe
@Azoboe Жыл бұрын
if your using visual code you might be using the "key PRESSED" instead of "key DOWN" function, I had the same error
@mxtyy_gg5372
@mxtyy_gg5372 Ай бұрын
every time i click to shoot , it says code error even tho i did it the same as you
@Sabedoriadesbalanceada47
@Sabedoriadesbalanceada47 Ай бұрын
same here
@Boiabba
@Boiabba Жыл бұрын
Nice tutorial, would definitely recommend including shortcuts alongside gui as it speeds up your life 350% more
@Em_1598
@Em_1598 Жыл бұрын
verry helpful to learn how to use this program
@tacamo68AK47
@tacamo68AK47 11 ай бұрын
at 11:13 sentence 9 instance_copy(true); is coming up as an error and causes the game to crash any ideas to as why that is? has the game language changed since this video was posted?
@tacamo68AK47
@tacamo68AK47 11 ай бұрын
forgot to mention the error says the return value of a pure function is not being used?
@tkeg
@tkeg Жыл бұрын
when i run the game after adding the first several events, my player isnt moving. ive proof read the visual code to make sure there are no errors. please help (:
@Enm7
@Enm7 5 ай бұрын
This is cool, thanks for this. How do I create an "or" for the movement, so I can use "up" or "W" to move? I wanted to add WASD controls, and the only way I could was by adding all the same commands but for the WASD, I then ran into the issue that if you pressed both W and UP at the same time or w/e other key, it would double the move speed. I only wanted to be able to use either key without adding more speed. Also, how to I add a hard stop so that I can stop the player movement? I added S and Down at -.1 so that it would slow and you could kind of stop, but it was not like a break and stand in place like I wanted.
@ayoweird
@ayoweird 4 ай бұрын
I’m still having trouble making the ship move
@ProtoZpikeyt579
@ProtoZpikeyt579 10 ай бұрын
my movement is not smooth for some reason, i have to press the key over and over, instead of just holding it down
@GameMakerEngine
@GameMakerEngine 10 ай бұрын
The best place to go is the GM community forum or Discord. Try posting a picture of your code to make it easy for people to help you Forum: forum.gamemaker.io/index.php Discord: discord.com/invite/gamemaker
@personwearingsuit5886
@personwearingsuit5886 7 ай бұрын
How would i make it so when you kill a certain amount of enemies you go to another level, like a different room thats slightly harder?
@GameMakerEngine
@GameMakerEngine 7 ай бұрын
The best place to go for help is the GM Community Forum or Discord Forum: forum.gamemaker.io/index.php Discord: discord.com/invite/gamemaker
@felipeavila1763
@felipeavila1763 Жыл бұрын
what an epic video. super entertaining and educative. Thank you!
@GameMakerEngine
@GameMakerEngine Жыл бұрын
Great! So happy you enjoyed it
@raindancer5143
@raindancer5143 Жыл бұрын
excellent tutorial, very easy to follow and extremely helpful. one question, are we able to 'refine' the hitbox of the player and/or the rocks? i noticed there is a small 'gap' that triggers the collision event even though the two objects arent necessarily 'touching' yet. a small nitpick but i feel like itd help player immersion. thanks!
@GameMakerEngine
@GameMakerEngine Жыл бұрын
Hey! You can modify the mask of your ship and rocks within their sprite editors. So e.g. double click on the player sprite and its sprite editor will open. Then expand the "Collision Mask" menu and change the Mode to Manual. Now you can just its mask in the canvas :)
@woodiesterryflap5491
@woodiesterryflap5491 Жыл бұрын
i replaced the rocks with THE ROCK and when they are hit they turn into kevin hart
@sstshivam
@sstshivam 5 ай бұрын
for some reason when I did the instance_destroy from the player it was giving me an error. so instead, I made it so that the rock would do the destroying of the player using instance_destroy(other) and made the game object call the alarm from the rock object instance instead. Otherwise worked great! Thank you for this-- very helpful!
@bench8988
@bench8988 9 ай бұрын
Instead of making it shoot with the left click, what do you need to write to make it shoot with the tab key?
@topsutinsmadness
@topsutinsmadness 7 ай бұрын
hey!, is there any possible way to add a destruction sound?
@Cubenoob13
@Cubenoob13 Жыл бұрын
Yo thank you so much man... appreciate it
@sparklol0527
@sparklol0527 Жыл бұрын
This was an excellent game! but how do move ship with "WASD"
@kiarafrei9145
@kiarafrei9145 Жыл бұрын
When you select up, down, left and right on the if key down you just choose WASD instead
@felipeavila1763
@felipeavila1763 Жыл бұрын
I got a question, how do i put a mechanic (idk how else to call it) where if the ship was moving on a direction (i pressed the up key button then i let it go), instead of just infinitely moving forward, how do i make it so that the ship stops moving until it completely stops? like if it was affected by a friction on the opposite side. i know i can just add an instance where if i press the down button i can move to the other side which will allow me to stop moving forward and just move the opposite direction. But i would like to know how to make the environment of the game stop my ship from moving the direction it is moving on.
@AGKyran
@AGKyran Жыл бұрын
I'm asking myself the same question actually. Even more, I'd like to add collisions between two rocks so they don't go through each other, but it seems when two rocks meet now they get stuck together. I'm still trying to figure things out, I'll update you if I find a solution !
@felipeavila1763
@felipeavila1763 Жыл бұрын
@@AGKyran thanks man! I put the down key button and it worked. But couldn’t find the « friction ». Hey are u new to GameMaker? I’m new and I’m trying to learn by myself.
@felipeavila1763
@felipeavila1763 Жыл бұрын
Uhhh….. u got discord…? You know…… so we can learn together…? I can give you my code.
@AGKyran
@AGKyran Жыл бұрын
@@felipeavila1763 I also added the down key button, but it's still the same, as long as the key is pressed the acceleration never stops. I found friction in the blocks but it seems it doesn't work no matter the value I put. Yes I'm new to gamemaker too! I watched a video about before (in my native language, french) and the person said it's a good thing to go over what's in tutorials, to add your own things. It's easier said than done though! I tried to duplicate the bullet instance when reaching a certain score (to shot more bullets), the game just crashed at the start.
@felipeavila1763
@felipeavila1763 Жыл бұрын
@@AGKyran oh Damn, hey I speak French too! The code is #5206
@feltcat
@feltcat 2 жыл бұрын
Please do this for the Heroes Trial tutorial too.
@BlueCereal_
@BlueCereal_ 6 ай бұрын
It keeps giving me a error message when I try to shoot a big rock the error is telling me that there is a problem with the instance copy part anf i don't know how to fix it
@RobertBarrile
@RobertBarrile 3 ай бұрын
Once you created a game, is there a way to export it in HTML5 code so it can be embed on a website page?
@davidmendoza8141
@davidmendoza8141 Жыл бұрын
I have a problem, I don't know how to enter there, could you give me your opinion?
@SamSpadeGameDev
@SamSpadeGameDev 2 жыл бұрын
Really cool!
@zacziggarot
@zacziggarot 8 ай бұрын
I can't drag and drop the sprite into the object box because as soon as I click on the asset to drag it the window changes to that
@CMessineo
@CMessineo Жыл бұрын
Great Tutorial, but I'm running into one problem in the "Destroying Rocks" section. I hit the rock and it explodes. But the explosion animation doesn't play on the FIRST HIT, it does play perfectly on all subsequent hits. I've checked my code thoroughly and tried it in GML Visual and GML Script with the same results (I'm on MAC OS if that matters). Am I doing something wrong or is this a bug in the actual program? EDIT: Just downloaded a completed version of the game code (created by someone else) and it also does not do the explosion animation on the first hit (but it works on all the hits after that). Very strange.
@morimoko
@morimoko Жыл бұрын
Same! do we have an answer yet?
@CMessineo
@CMessineo Жыл бұрын
@@morimoko No. Unfortunately, I grew frustrated with the lack of up to date tutorials for GameMaker and I've switched to another engine. But I wish you the best of luck with it.
@morimoko
@morimoko Жыл бұрын
which engine? and would you say you are a beginner? just wondering as I am also just getting into the space.@@CMessineo
@CMessineo
@CMessineo Жыл бұрын
@@morimoko I am definitely a beginner and the game I want to build is a fairly simple 2d game. After testing many engines, I found that Construct 3 was the best fit for my purpose and the included tutorials were excellent.
@MikeHart66
@MikeHart66 Жыл бұрын
effect_create_above is depreciated. Use this instead: effect_create_layer("Instances",ef_explosion,x,y,1,c_white);
@ajinkyax
@ajinkyax Жыл бұрын
how to know what all green color properties available to use in an object script ?
@thepashtun0
@thepashtun0 Жыл бұрын
Hello, whats the difference between create and step? and whats the begin step and end step for as well, can someone explain please?
@jasmijn-1419
@jasmijn-1419 Жыл бұрын
Not sure if you still need this but create is when it spawns and step is every frame.
@thepashtun0
@thepashtun0 Жыл бұрын
@@jasmijn-1419 thanks!
@ottern2885
@ottern2885 Жыл бұрын
It says that Object: Obj_player Event: Step at line 3 : wrong number of arguments for function motion_add. What does that mean!
@kjashmirferra
@kjashmirferra 10 ай бұрын
yea i found out that by rewriteing the code it works
@stoodmuffinpersonal3144
@stoodmuffinpersonal3144 3 ай бұрын
Question, if you still answer them. My ship glides even if I release the key. Is there any way I can fix that?
@bed391b5
@bed391b5 3 ай бұрын
How do you code to keep shooting while holding down the left mouse button?
@GameMakerEngine
@GameMakerEngine 3 ай бұрын
Check out this tutorial :) kzbin.info/www/bejne/Y2LZiYRjmrmJqacsi=PFVOLP8SqH3UFXGo
@kenny13305
@kenny13305 Жыл бұрын
is there a way to give the big rock and the small rock different point values? probably not right because they are the same event?
@HatEm-m5s
@HatEm-m5s 5 ай бұрын
sorry for being agressive the first time this tutoriel is actualy pretty good and helped a lot
How To Add A New Enemy In Windy Woods | GameMaker
8:23
GameMaker
Рет қаралды 13 М.
How to Create 2 Awesome Power Ups in GameMaker
13:16
GameMaker
Рет қаралды 42 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,3 МЛН
5 DEVS Make a GAME without COMMUNICATING! (Bug edition)
14:24
Blackthornprod
Рет қаралды 252 М.
How Two People Created Gaming’s Most Complex Simulation System
38:54
ThatGuyGlen
Рет қаралды 1,5 МЛН
Turbo Tutorial - How to make Pong in 15 minutes & learn GameMaker!
14:05
Why Is It Bad That My Game Looks Good?
16:40
Deynum Studio
Рет қаралды 403 М.
every step to actually make your dream game (then sell it)
24:27
Making Really Difficult Boss Fights for my Indie Game
20:22
Pontypants
Рет қаралды 1,2 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН