I think this is going to be the new tutorial I recommend for people to start GM. Its very short, covers most of the basics, and uses (relatively) new functions like move_and_collide that some very good- but older- tutorials are missing.
If you go onto our channel homepage you can see a playlist called: 'How to... in GameMaker' and another named: 'Dive Deeper'. There might content in there that helps you. Here's another tutorial on How to Add Checkpoints :). th-cam.com/video/Jn_9vInZVkU/w-d-xo.html
OHhhh!! i've never knew about the move_and_collide function! Nice one! Has game maker thought how to make camera more intuitive and easier to set it up? BTW i loved this video! I was making a game in game maker but i should quit on it because the code became too much difficult to keep it clean! I'm waiting the new GUI to test GM back
this was really nice and super understandable. I just got one thing to say: could you add somewhere in the Title of the Video or on the thumbnail that this is made with code and not the visual thing? just a suggestion :D
Ya, I get this error ___________________________________________ ############################################################################################ ERROR in action number 1 of Step Event0 for object oPlayer: Variable .oSolid(100005, -2147483648) not set before reading it. at gml_Object_oPlayer_Step_0 (line 17) - move_and_collide(xsp,ysp,oSolid) ############################################################################################ gml_Object_oPlayer_Step_0 (line 17)
Great tutorial!! Wondering if you could expand on this game by showing how to create a world map that you can enter into and move through levels and then at the end jump back to the world map and unlock a new part?!
He actually did show that! Everything here has what you need to do exactly what you just described! Instead of applying gravity, make up and down function like right and left so the player can move on top-down map. Instead of a flag, make points that take the player to the levels. Instead of room_goto being next middle-mouse click on that function. It will tell you how to go to a specific room (your rmMap in this case) Instead of just "the next room in line". Finally, if you don't want all levels available at the start, make a variable! Just like how we can run code when the player touches a flag, we can run code when the flag is touched by the player. Have the flag on each level set the level variable to complete. On the map, have the level points check if the player completed the last level, and if they did you can allow the player to enter. Do this by using an if statement, just like you do for moving and jumping!
Dear Friends of GameMaker, Is there a possibility that you can make a final Update to GameMaker Version 1.4999, so that it can be compatible with the latest version of Android, that is to say that it generates AAB files and not APKS, because APKS are no longer allowed through the Play Store? This is because many have code made with GM1.4, and in version 2.0 this code is not Compatible, much of the work already done is lost.
Amazing tutorial, I came from basic coding platforms like scratch, and others. And this tutorial worked perfectly! However I experienced a problem with the gravity, the player moves too slow to the bottom compared to how fast the tutorial was. Did I do somthing wrong?
Hey, it's hard to check code here so generally the best place to go for help is the GM Discord: discord.com/invite/gamemaker People there are really helpful and you can post screenshots etc. In the long term here's a tutorial that might help you get a deep understanding of GameMaker Physics like gravity: th-cam.com/video/iL8pgudKeeo/w-d-xo.html Go to 08:08 for gravity & 02:00 Physics properties
I've followed this exactly, but when I get to move_and_collide step, the playtest does nothing. It doesn't detect me pressing the keys. The compiler has no errors and my code is identical to yours. I checked the documentation, and it uses a slightly different version of the command with extra parentheses, but that version also does not seem to work. I tried relaunching the engine, that did not fix the issue, and restarting my PC also did not resolve the issue. Why is it not detecting any keyboard input at all? I figured it out. I wrote the code inside my flag object, which I hadn't actually placed on the map yet.
With this code character gets stuck to the vertical walls when moving diagonal. Either falling down diagonal or jump and direction key at the same frame. Anyone else is having this bug? MOVE AND COLIDE function is BUGGED :(
Hii im trying to do a cooking game but as a Begginer I’m having a hard time changing located of the dishes and foods, could somebody make a tutorial for this please?
Noted :), but you'll get help a bit quicker from posting on the GM Community Forum or Discord: Forum: forum.gamemaker.io/index.php Discord: discord.com/invite/gamemaker
Hold the key to add multiple tiles. And hold the key to move tiles to a new place. The key will avoid snapping to the gird. Also there is again a pop- up menu when you hold the key and click on a tile with the right mouse button.
Hey, weve got a tutorial on how you can check what error you're getting and fix it: th-cam.com/video/rqSRmFT1I-U/w-d-xo.html Otherwise, 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
Selecting a Tile Layer opens another panel to the right of the IDE, where you can select each individual tile (or multiple tiles using CTRL+LMB) and paint them in the room. gamemaker.io/en/blog/practical-guide-tiles#s5
Thnx I have another question when my sprite jumps and it hits the ceiling it suddenly gets a boost and jumps higher. I upped the jump to 6 so it's pretty high. Whenever I hit a ceilings wich is not that high my object sprite floats along the ceiling for a little while. Is there an easy way to fix this meaby? Great tutorial btw
hmm dunno if it works, but in theory you should be able to use similar code like in the stop jumping part. I ain't got time to look for it further but you might check if the player is colliding with the ceiling and then stop decreasing y or ysp. I hope it helps :D
@@mioszrybus340 I think it's because in the code, it says that if the player touches a wall, the ySpd becomes 0 (so it is suspended in mid-air), then in the next frame, gravity re-applies and it starts to fall. To stop it from happening, you could adjust the collision mask to make it so that only the bottom of the player detects collision. But this would mean your player could jump "into" a wall. There would be a way to do it with code, but I can't think of what it would be, I'm only learning myself.
🤔🤔 Every time you die your character changes weapon or gets a random perk Every other time you die, your next run is in monochrome and this reveals hidden clues in the map that can hep you complete the game. You wouldn't otherwise see these clues but they still exist in the map - like invisible ink
There's probably something small wrong with the code - maybe you missed a semi colon, or misspelt a word etc. After checking try reach out on Discord with a screenshot of your code: discord.com/invite/gamemaker Another option would be to use the debugger: th-cam.com/video/rqSRmFT1I-U/w-d-xo.html
Check your code again, sometimes things are easy to miss! The best place to go for help is the GM Community Forum or Discord though, you could upload a screenshot of the issue and ask for help :) Forum: forum.gamemaker.io/index.php Discord: discord.com/invite/gamemaker
Are you getting an runtime error message? Sorry to hear it's not working It could be something small like a spelling mistake. Check out this tutorial cause it will help you find errors: th-cam.com/video/rqSRmFT1I-U/w-d-xo.html
Some things might have changed, there is a lot more functionality now and there are different lay outs, but it will mostly still work. Another option is to change the language of the manual to German, here's the instructions: help.gamemaker.io/hc/en-us/articles/360009869738-How-To-Change-Your-IDE-Manual-Language-And-Even-Create-Your-Own
Hey, weve got a tutorial on how you can check what error you're getting and fix it: th-cam.com/video/rqSRmFT1I-U/w-d-xo.html Otherwise, 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
So I did everything you said to do, yet my character gets frozen after a quarter of a second. No errors show so idk whats wrong. And because I did follow this to the letter I can't suggest this tutorial because you didnt mention any kind of issues. And then after 30 seconds the character just disappears because they can't move
Hey, we've got a tutorial on how you can check what error you're getting and fix it: th-cam.com/video/rqSRmFT1I-U/w-d-xo.html Otherwise, 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
Hey, weve got a tutorial on how you can check what error you're getting and fix it: th-cam.com/video/rqSRmFT1I-U/w-d-xo.html Or if it's a compile error check here: manual.gamemaker.io/lts/en/Additional_Information/Errors/Compiler_Errors.htm#:~:text=Compile%20Errors&text=NOTE%20These%20errors%20don't,Error%2C%20which%20is%20explained%20here.&text=Assignment%20of%20an%20empty%20value%20(function%20does%20not%20return%20anything%3F)&text=The%20structure%20of%20the%20given%20statement%20is%20incorrect. Otherwise, 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
I think this is going to be the new tutorial I recommend for people to start GM. Its very short, covers most of the basics, and uses (relatively) new functions like move_and_collide that some very good- but older- tutorials are missing.
Thank you very much!!
For anyone that is looking, Hold ALT to use an Object continuously with your cursor
Great Job Guselect, this is such a great starting point for a project.
Also adding checkpoints and showing how to add different hazards could be fun to have as well :)
If you go onto our channel homepage you can see a playlist called: 'How to... in GameMaker' and another named: 'Dive Deeper'.
There might content in there that helps you. Here's another tutorial on How to Add Checkpoints :). th-cam.com/video/Jn_9vInZVkU/w-d-xo.html
OH MY GOD, GUSELECT MADE A TUTORIAL IN ENGLISH
Now that's a great tutorial.
Save 30m from other tutorials with this
Frrrrrrr
I have been trying to do it for a long time but today I finally did it and it worked
Yey! :)
Legend!
Game recognise game!
o inglês tá em dia, parabéns guselect, te vi lá no gamescom Latam
Ainda bem, foi o único vídeo recente que explica bem que consegui encontrar
8:27 oSolid does not work as it says inconsistent naming even though I've done everything the exact same?
thank you very much you should continue making tutorials, I would like to learn how to make a ship game if it is possible you can teach us
OHhhh!! i've never knew about the move_and_collide function! Nice one! Has game maker thought how to make camera more intuitive and easier to set it up?
BTW i loved this video! I was making a game in game maker but i should quit on it because the code became too much difficult to keep it clean! I'm waiting the new GUI to test GM back
Thank you very much. If it possible tell us more about collisions. And maybe about changing one sprite to another when cases are changes. 👍
We're actually just about to release a complete collisions tutorial! Great timing
@@GameMakerEngine will wait it, thank you very much.
Hello fellow game makers
this was really nice and super understandable. I just got one thing to say: could you add somewhere in the Title of the Video or on the thumbnail that this is made with code and not the visual thing? just a suggestion :D
We've added it into the description for now, but thanks for pointing that out!
He casually skips over oSolid so I have no Idea how to proceed
It's too bad, I'm stuck too 😥
Ya, I get this error
___________________________________________
############################################################################################
ERROR in action number 1
of Step Event0 for object oPlayer:
Variable .oSolid(100005, -2147483648) not set before reading it.
at gml_Object_oPlayer_Step_0 (line 17) - move_and_collide(xsp,ysp,oSolid)
############################################################################################
gml_Object_oPlayer_Step_0 (line 17)
Great tutorial!! Wondering if you could expand on this game by showing how to create a world map that you can enter into and move through levels and then at the end jump back to the world map and unlock a new part?!
He actually did show that! Everything here has what you need to do exactly what you just described!
Instead of applying gravity, make up and down function like right and left so the player can move on top-down map.
Instead of a flag, make points that take the player to the levels.
Instead of room_goto being next middle-mouse click on that function. It will tell you how to go to a specific room (your rmMap in this case) Instead of just "the next room in line".
Finally, if you don't want all levels available at the start, make a variable! Just like how we can run code when the player touches a flag, we can run code when the flag is touched by the player. Have the flag on each level set the level variable to complete. On the map, have the level points check if the player completed the last level, and if they did you can allow the player to enter. Do this by using an if statement, just like you do for moving and jumping!
To anyone whose game is freezing when they touch the spikes, untick the persistent box in the room settings.
yoo thanks for the tutorial +1 sub
Thanks for the sub!
Dear Friends of GameMaker, Is there a possibility that you can make a final Update to GameMaker Version 1.4999, so that it can be compatible with the latest version of Android, that is to say that it generates AAB files and not APKS, because APKS are no longer allowed through the Play Store? This is because many have code made with GM1.4, and in version 2.0 this code is not Compatible, much of the work already done is lost.
This request is something thousands of people do, my friend. It’d be awesome to have this.
That would be cool to see someone at GameMaker doing a turn-based battle system tutorial, I can't find any ressource in order to manage this... :(
Hey, Sara Spalding covers this! th-cam.com/video/Sp623fof_Ck/w-d-xo.html
Amazing tutorial, I came from basic coding platforms like scratch, and others. And this tutorial worked perfectly! However I experienced a problem with the gravity, the player moves too slow to the bottom compared to how fast the tutorial was. Did I do somthing wrong?
Hey, it's hard to check code here so generally the best place to go for help is the GM Discord: discord.com/invite/gamemaker
People there are really helpful and you can post screenshots etc.
In the long term here's a tutorial that might help you get a deep understanding of GameMaker Physics like gravity: th-cam.com/video/iL8pgudKeeo/w-d-xo.html
Go to 08:08 for gravity & 02:00 Physics properties
Never mind I figured it out 😅 but thanks!
Didn't know GM has move_and_collide
I've followed this exactly, but when I get to move_and_collide step, the playtest does nothing. It doesn't detect me pressing the keys. The compiler has no errors and my code is identical to yours. I checked the documentation, and it uses a slightly different version of the command with extra parentheses, but that version also does not seem to work. I tried relaunching the engine, that did not fix the issue, and restarting my PC also did not resolve the issue. Why is it not detecting any keyboard input at all?
I figured it out. I wrote the code inside my flag object, which I hadn't actually placed on the map yet.
in my case I wrote the code in the right object. Don't even move...
With this code character gets stuck to the vertical walls when moving diagonal. Either falling down diagonal or jump and direction key at the same frame. Anyone else is having this bug? MOVE AND COLIDE function is BUGGED :(
8:12 omg this explains why gravity values are positive and why jumping values are negative
graph at 8:08 is kind of misleading; in Gamemaker, Y gets bigger as you move down
Isn't the graph he showed exactly what you are saying 🤨
Oh yeah Guselect tutorial :)
GUSELECT MEU MANO
the jump isnt smooth, it just teleport, can someone help?
Hii im trying to do a cooking game but as a Begginer I’m having a hard time changing located of the dishes and foods, could somebody make a tutorial for this please?
Noted :), but you'll get help a bit quicker from posting on the GM Community Forum or Discord:
Forum: forum.gamemaker.io/index.php
Discord: discord.com/invite/gamemaker
how you did the floor? like auto duplicating, I don't know how to do it :(((
Hold the key to add multiple tiles. And hold the key to move tiles to a new place. The key will avoid snapping to the gird. Also there is again a pop- up menu when you hold the key and click on a tile with the right mouse button.
@@GameMakerEngine thank you!! 😊
Curiosidade esses códigos da pra literalmente refazer o moonleao inteiro
i followed this exacty and my game has no response, idk what i did wrong
Hey, weve got a tutorial on how you can check what error you're getting and fix it: th-cam.com/video/rqSRmFT1I-U/w-d-xo.html
Otherwise, 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
how are you placing ground ? which key ?????????????? @GameMakerEngine
Selecting a Tile Layer opens another panel to the right of the IDE, where you can select each individual tile (or multiple tiles using CTRL+LMB) and paint them in the room.
gamemaker.io/en/blog/practical-guide-tiles#s5
gamemaker is to expensive in my country so pls can you like ngn web were the price is change i am sorry but in the mean time i use the free
which country are you buying from and what is the price?
Hi bot, please rescrape their website to see the current prices 😂
@@serdar-bayram nigeria and the price can pay my shop rent 125, 000
@@uelsimon bro i am not a bot
@@charlesdanamor3317 oh lol apologies. I must have misinterpreted your message since they have a free tier.
How are you moving left and right without defining x = xsp and y = ysp
With the "move_and_collide()" This function moves the instance by the given distance on the X and Y axes, while avoiding oSolid! :)
Thnx I have another question when my sprite jumps and it hits the ceiling it suddenly gets a boost and jumps higher. I upped the jump to 6 so it's pretty high. Whenever I hit a ceilings wich is not that high my object sprite floats along the ceiling for a little while. Is there an easy way to fix this meaby? Great tutorial btw
hmm dunno if it works, but in theory you should be able to use similar code like in the stop jumping part.
I ain't got time to look for it further but you might check if the player is colliding with the ceiling and then stop decreasing y or ysp.
I hope it helps :D
@@mioszrybus340 I think it's because in the code, it says that if the player touches a wall, the ySpd becomes 0 (so it is suspended in mid-air), then in the next frame, gravity re-applies and it starts to fall. To stop it from happening, you could adjust the collision mask to make it so that only the bottom of the player detects collision. But this would mean your player could jump "into" a wall. There would be a way to do it with code, but I can't think of what it would be, I'm only learning myself.
Im currently making a roguelike 2d game. Anyone got stupid and kinds random lil gimmicks i should try to implement?
🤔🤔
Every time you die your character changes weapon or gets a random perk
Every other time you die, your next run is in monochrome and this reveals hidden clues in the map that can hep you complete the game. You wouldn't otherwise see these clues but they still exist in the map - like invisible ink
@@GameMakerEngine pretty interesting idea. ill give it a try
I have copied the code 1 for 1 and it doesnt work i am using mac do you know what i have to do?
There's probably something small wrong with the code - maybe you missed a semi colon, or misspelt a word etc.
After checking try reach out on Discord with a screenshot of your code: discord.com/invite/gamemaker
Another option would be to use the debugger: th-cam.com/video/rqSRmFT1I-U/w-d-xo.html
great
I did everything correct but I clip through the ground anyone know why?
Check your code again, sometimes things are easy to miss! The best place to go for help is the GM Community Forum or Discord though, you could upload a screenshot of the issue and ask for help :)
Forum: forum.gamemaker.io/index.php
Discord: discord.com/invite/gamemaker
mano o mais legal o guselect é que esse jogo era a ideia original do moonleap!
Dont know what i did wrong i keep on falling through ground
Check again at 8:18 - Might be that you haven't set the collisions correctly. You need to make it so you collide with the ground.
Cheguei na hora certa
Doesn't work. couldn't move my character, I've tried this tutorial from the beginning three times now.
Are you getting an runtime error message? Sorry to hear it's not working
It could be something small like a spelling mistake. Check out this tutorial cause it will help you find errors: th-cam.com/video/rqSRmFT1I-U/w-d-xo.html
Its so Hard to understand this tutorial with bad english 😢 u could cry. I have a tutorial im german, what is 7 years old. Can i still use it?
Some things might have changed, there is a lot more functionality now and there are different lay outs, but it will mostly still work. Another option is to change the language of the manual to German, here's the instructions:
help.gamemaker.io/hc/en-us/articles/360009869738-How-To-Change-Your-IDE-Manual-Language-And-Even-Create-Your-Own
anyone elses game just freeze when you touch the spikes or flag ?
Hey, weve got a tutorial on how you can check what error you're getting and fix it: th-cam.com/video/rqSRmFT1I-U/w-d-xo.html
Otherwise, 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
Untick the persistent box in the room settings.
Hey, Gamemaker! Are you alive? Where is all the buzz?
Actually dead :/
@@GameMakerEngine I still believe in you. I have chosen you for my project.
n tem legenda :(
So I did everything you said to do, yet my character gets frozen after a quarter of a second. No errors show so idk whats wrong. And because I did follow this to the letter I can't suggest this tutorial because you didnt mention any kind of issues. And then after 30 seconds the character just disappears because they can't move
You almost definitely just did something wrong
Hey, we've got a tutorial on how you can check what error you're getting and fix it: th-cam.com/video/rqSRmFT1I-U/w-d-xo.html
Otherwise, 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
Can you do some rpg tutorials?
!! Yes, but in the meantime try th-cam.com/play/PL14Yj-e2sgzySnBUlQLhq2VJXRLi66gFf.html
@@GameMakerEngine I've done that one but they don't do any combat.
@@tommcmullin1875 What about adding in one from Sara Spalding: th-cam.com/video/vJ6ksNLLFiQ/w-d-xo.html
also these:
Making Enemies Smarter: th-cam.com/video/8qUg_2CvD0k/w-d-xo.html
Weapon systems: th-cam.com/video/-1vXQ-eTVsE/w-d-xo.html
This doesn't work.
By 08:30 if i press "Run" it doesnt open the window for test the game. Why not?
Hey, weve got a tutorial on how you can check what error you're getting and fix it: th-cam.com/video/rqSRmFT1I-U/w-d-xo.html
Or if it's a compile error check here: manual.gamemaker.io/lts/en/Additional_Information/Errors/Compiler_Errors.htm#:~:text=Compile%20Errors&text=NOTE%20These%20errors%20don't,Error%2C%20which%20is%20explained%20here.&text=Assignment%20of%20an%20empty%20value%20(function%20does%20not%20return%20anything%3F)&text=The%20structure%20of%20the%20given%20statement%20is%20incorrect.
Otherwise, 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