Тёмный

GameMaker: Action RPG Tutorial (Part 1: Moving & Resolution) 

Sara Spalding
Подписаться 160 тыс.
Просмотров 558 тыс.
50% 1

Опубликовано:

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 712   
@SaraSpalding
@SaraSpalding 3 года назад
If the assets file link doesn't seem to work, right click it and hit save as. Or use a non-Chrome browser. Chrome doesn't play nice with direct file links on YT for whatever reason.
@GoingToAFuneral
@GoingToAFuneral 3 года назад
I thought there was something wrong with my computer lol
@klondikebar2849
@klondikebar2849 3 года назад
for some reason when i run, i cant move it. i made sure the code was the same, and it should be working. maybe there was an update to game maker as this was made 2 years ago, but if you see this please help
@GoingToAFuneral
@GoingToAFuneral 3 года назад
@@klondikebar2849 well there sure wasn't an update
@klondikebar2849
@klondikebar2849 3 года назад
@@GoingToAFuneral weird. i have no clue why this isnt working and i have gone through the code at least 1000 times already, and i cant find whats wrong.
@klondikebar2849
@klondikebar2849 3 года назад
@@GoingToAFuneral i just got it to work as i said that lmao its all good now
@QWhippy
@QWhippy 4 года назад
This series is going to be absolutely astounding. So many GMS2 tutorials are either outdated, poor quality, or abandoned. This one is brand new and made by an amazing person! I have to admit that it will be a pain to wait for new episodes, but I'm willing to wait! Please don't drop the series, Shaun! You're doing the good work!
@antonioj776
@antonioj776 3 года назад
You're doing the good work shaun
@Yoni123
@Yoni123 3 года назад
Did you end up making a game?
@Friredragon
@Friredragon 2 года назад
Speaking of outdated
@Friredragon
@Friredragon 2 года назад
Lmao
@DoubleeyAG
@DoubleeyAG Год назад
​@@Friredragon lmao
@SaraSpalding
@SaraSpalding 4 года назад
Just making a thing move on the screen seems almost anti-climactic to me after this huge long wait, but we have to start somewhere! So glad to finally have an episode out. Shout outs to all my Patreon supporters for getting us over the line from preproduction into production. Will be aiming to put new episodes out weekly in the new year. Have a great holiday season all!
@TheGrandMasterFunk
@TheGrandMasterFunk 4 года назад
yass
@enru2251
@enru2251 4 года назад
Awesome. Nice to see Ur new episode again. 🙋‍♂️
@magic8ballin
@magic8ballin 4 года назад
Hi shaun, do you think there will be a schedule to this series?
@SaraSpalding
@SaraSpalding 4 года назад
@@magic8ballin From the start of next year I'll be trying to get these out weekly.
@magic8ballin
@magic8ballin 4 года назад
@@SaraSpalding Sounds good!
@Phbickle
@Phbickle Год назад
Making this comment late October 2023 having just finished the full series. Cannot recommend enough. Absolutely fantastic tutorial that gave me a really great understanding of GMS, and one of the best you will find on youtube. Just out of date enough that you sometimes you have to do some extra work yourself which helps with the learning, but still new enough that everything is relevant.
@Tiperia
@Tiperia 10 месяцев назад
just starting, glad it still works
@musicdudem6673
@musicdudem6673 8 месяцев назад
As someone going in now, do you have any advice for what to look out for? i have so many tutorials to begin with that are already out of date with UE5 having so many new features, how far off the beaten path do you need to go and where does that usually happen? Functions for sure, anything else?
@jeronemoG
@jeronemoG Месяц назад
i was having problems trying to start up and couldnt see my sprite it was al just black screen
@ChipPotato-u9p
@ChipPotato-u9p 22 дня назад
@@jeronemoG the same happened to me, there was an update recently and that seemed to fix it
@jeronemoG
@jeronemoG 22 дня назад
@@ChipPotato-u9p oh great to know thanks!
@RowinAlong
@RowinAlong Год назад
I've been trying to learn GMS2 for literal years at this point and yours is the first tutorial I've found in all that time which is clear, good quality, and actually explains what's going on and why. From the bottom of my heart, thank you
@stanuhappying2478
@stanuhappying2478 Год назад
how to make "or", when i type "||", game don't work
@suwa77
@suwa77 8 месяцев назад
@@stanuhappying2478 Little late I know... but did you try removing the ";" at the end? I left ";" in the wrong spot, which had me scratching my head for some time. I did this: keyLeft = keyboard_check(vk_left); or keyboard_check(ord("A")); When I was supposed to do this: keyLeft = keyboard_check(vk_left) or keyboard_check(ord("A"));
@cjslippin9274
@cjslippin9274 7 месяцев назад
Has anyone finished this tutorial recently? I’m hoping to do this next but I’m worried some things don’t work anymore. If there’s fixes for the issues that don’t involve re designing entire mechanics/ blocks of code I’d be happy
@zapatosverdes5058
@zapatosverdes5058 4 года назад
You're going to get far Shaun, you really have some talent.
@HenrikoMagnifico
@HenrikoMagnifico 4 года назад
He's already employed by YoYo Games LTD...
@SaraSpalding
@SaraSpalding 4 года назад
@@HenrikoMagnifico was! I'm currently self employed and supported almost entirely by patreon.
@SorchaSublime
@SorchaSublime 3 года назад
@My JMV just follow the tutorial dude
@runo4155
@runo4155 3 года назад
@My JMV a game is not worth a sans foil card
@fishencasedinjelly3950
@fishencasedinjelly3950 2 года назад
@DezeMiauz snas undersnail
@fluresent
@fluresent 4 года назад
Woohoo! The Pilot episode, well done Shaun. Can't wait to get into the series.
@thedanish5523
@thedanish5523 3 года назад
Here I am, back where it began. I just finished the 51st episode. What a journey. I came back to episode 1 to reference a couple things as I embark on my first self-directed project. Thanks again for all the help, Shaun.
@gtrjahnios832
@gtrjahnios832 2 месяца назад
Hey, 3 years later, did you progress a lot in game development?
@zcartre83
@zcartre83 2 года назад
Something that may not be obvious if you are new to programming: True is the same as the number 1 and false is the same as the number 0. inputMagnitude will result in either true or false but it is actually 1 or 0, so that is why we can multiply inputMagnitude by speedWalk. If you were wondering how it is possible to multiply a number by true or false.
@lorenrichter9780
@lorenrichter9780 2 года назад
you're a great teacher, thanks for making these guides
@alexpalmer5210
@alexpalmer5210 Год назад
noooooooooooo hes not watch out nnnnnnnnnnnnnnnnnnnnnnnnaaaaaaaaaaaaaahhhhhhhhhhhhhh owahhhhhhhhhhhahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhyhaahhhhhhhhhhhhhhhahhhhhhhhhhhhhhhaaaaaaaaaaaaaaaaahhhhhhhhhhhhhhhhhhhhhhhhhhh NO NONON ON ONOEN OEN ON ONWHAT HOYUY YWHAT OUT NOOOOOO SERGWWNT WATCH OUT NAAAHAHH NOWOWOWOWOOA NONO_ NONON ON O NONA EON
@alexpalmer5210
@alexpalmer5210 Год назад
nnivver wer nerin ineninggern nineigegrer
@alexpalmer5210
@alexpalmer5210 Год назад
@richardwestphal1015
@richardwestphal1015 4 года назад
Thank you for creating these tutorials. I know you say the progression is slow, but that's exactly what a first timer needs. Every video tutorial I've watched on Unity (by other RU-vidrs) was way too fast, and there were things they didn't mention that a first timer would miss.
@shabanotti
@shabanotti 3 года назад
Dude the way you explain is amazing! It was never easier to follow a course, good job! Thank you so much and I wish you all the best! :)
@TheRoboticFerret
@TheRoboticFerret 2 года назад
I just got back into making games recently and I am absolutely thrilled to have found this series! After finishing Crystalis on NES I decided I want to make a game in this kind of style. Thank you for all your hard work
@ChrisJohnson-pe9ro
@ChrisJohnson-pe9ro 4 года назад
For all you other macOS programmers, if you want to toggle to fullscreen you press control + command + f. Hope this helps!
@1bubblegumsoda
@1bubblegumsoda 3 года назад
i've never seen a tutorial so clear and understandable! creating a game has crossed my mind so many times in past few months and i didn't know where to start i'm currently saving money for gamemaker studio! thank you so much for explaining the way it works, creating my dream game will be so much easier!
@pazzamono551
@pazzamono551 4 года назад
Was so excited when I saw a new episode for coding. the only channel I know that does good in depth coding tutorials (: (super excited)
@maximusjet5412
@maximusjet5412 4 года назад
should recommend friendlycosmonaut as well :)
@pedrinho_ehe
@pedrinho_ehe 3 года назад
Do you know when you spend 3 days trying to find a rpg game creating tutorial? Yeah, I litteraly spend 3 days to find one and I actually found ONE in 1 day, but the results weren't the results I wanted... So I spend 2 more days and I found this one, where I just understood everything about the first video, I even added more stuff while I was exploring the functions of things and now--- now I'm gonna make my dream 2D game with this tutorial (playlist of videos about a single tutorial) now... I'M HAPPY! :) Thanks for your videos, they are very helpful, at least for me. :) Have a great life.
@forgotten1997
@forgotten1997 2 года назад
Shaun, you have no idea how much this has helped a starting-up indie game dev such as I. Thank you. We appreciate your work!
@09SkyFrost
@09SkyFrost 3 года назад
My 2 hours has been eaten by me making a character sprite
@Glare108
@Glare108 Год назад
It do sometimes be that way
@Glory2Snowstar
@Glory2Snowstar 8 месяцев назад
My first two months of making my game were eaten alive by making my character sprites. It do indeed be like that.
@SpiritVector
@SpiritVector 4 месяца назад
Welcome to game dev, ai doesn't even help because it sucks.
@R0R1_S1ll1
@R0R1_S1ll1 3 месяца назад
real, its taken like thirty minutes to make the standing sprite💀
@Vadvid
@Vadvid 4 года назад
FINALYYYYYY ! I was wating for so long! Thank you Shaun for teaching us how to code on GML! Keep going like this!
@digitalswordplay
@digitalswordplay 4 года назад
Very much looking forward to this series. Congrats on all the hard work of putting it all together! I’ll be buying the assets to follow along every time a new vid gets released! Cheers :)
@alexanderh7807
@alexanderh7807 4 года назад
I found you through the yoyo games channel. The tutorial there was so amazing that I had to come and check out the channel. With just this last week, I have learned more about coding than the few months I was working with Unity. I can confidently go into a new project and create a nice little game within just a few hours (2d platformer), ready to tackle some top down ARPG. And with the knowledge I already had, i was able to make a very minimal game like this with a lot of trial and error and understanding how the platforming side worked. Cant wait to expand my knowledge even more!
@conormahony586
@conormahony586 4 года назад
It's RPG btw, not ARpg
@alexanderh7807
@alexanderh7807 4 года назад
@@conormahony586 top down action rpg. Top down arpg.
@Guarrow
@Guarrow 4 года назад
Decided to start right one. Never had the courage to finish a single game. I hope I'll get through this, doesn't seem too hard and I know I can do this. Thanks for the tutorial !!
@Yoni123
@Yoni123 4 года назад
I'm on the same boat. Still making a game?
@5310yryr
@5310yryr Год назад
Video might be old but im gonna comment anyways. I took a game maker summer class back in like 2012 lol...anyways recent videos of people making games has inspired me to revisit it. Your tutorials are great. I am super greatful for you leaving the assets folder. Much respect to you and your work.
@NaudVanDalen
@NaudVanDalen 2 года назад
I see you moved from hsp and vsp to hSpeed and vSpeed. Tips for newbies: you need to capitalize the S. Otherwise they are default variables and your object starts moving at the end of the frame automatically if they are anything but 0. That prevents complicated collision checks from working correctly. You may want to move in one direction before checking for the other direction. Default variables may get you stuck in corners because they see that both directions are clear of objects and then move you in both directions even though there was an object in the corner.
@Diver13666
@Diver13666 4 года назад
Me: Just finished Platformer Tutorial and feeling badass! Shaun: And that's how the little dude walks! Me: ah, there we go again... =)
@juanignacioleyenberger55
@juanignacioleyenberger55 3 года назад
a year and a half. CONGRATULATIONS greetings from Argentina, best GMS2 youtuber ever, hope you get more subs. You deserve it
@ygordreyer
@ygordreyer 3 года назад
I had experience with Unity, and I'm migrating to GMS2. So I needed a complete project, and not that simple... so I could relearn everything in GMS2... This project it's PERFECT for this so far. So clear, and well explained. And also doesn't "hold your hand" too much, explaining the functions, and not just writing everything down.
@gianlucagallone2258
@gianlucagallone2258 3 года назад
Thank you for your tutorials Shaun. You are a superhero! Coming from part 31 I have decided to create a new game prototype with all kinds of features including the ones you are teaching. For the sake of learning I started again, this time using my own syntax, writing a lot of descriptions on each event and using basic assets created in just a few hours (stylized figures) so I can focus on the game Mechanics before digging into Art and Sound. Coming from the newer versions of GameMaker I have been able to wrap all Scripts inside a few Scripts and other funny stuff for crazy organised people like me. Cheers!
@lildgamedev6885
@lildgamedev6885 4 года назад
Yes I’ve been excited for this glad it’s finally here!
@grass324
@grass324 4 года назад
keyAttack = keyboard_check_pressed(vk_shift); Sticky shift notif: I'm about to ruin this games career
@Karak-_-
@Karak-_- 4 года назад
Laights in disabled Sticky shit notif.
@subliminalcastillo2126
@subliminalcastillo2126 4 года назад
@@antigamer1013 Stick keys is like an accesibility feature for people with arthritis, who can't hold down multiple keys at the same time. Instead of holding down Ctrl+Alt+Del simultaneously, with stick keys enabled, you can trigger sticky keys, then individually press Ctrl, Alt, then Del consecutively and it will count as them being held down all at the same time
@Sacchari
@Sacchari 4 года назад
@@subliminalcastillo2126 Thanks for the info on that! I didn't know at all. If I type too much or at a bad angle my wrists will start to hurt and it makes it difficult for me to position my hands to hold down multiple keys at once. (It's literally happening right now... fml.) I'll definitely keep this in mind in the future.
@Nick_DoesStuff
@Nick_DoesStuff 3 года назад
@My JMV yeah and the source code is 10 bucks. thats a scam
@ouxu597
@ouxu597 3 года назад
cringe weeb
@renanmarcilio4677
@renanmarcilio4677 4 года назад
Glad to see some form of camera management early on development, that caused me some headaches when I had more stuff in and many conditions for the camera to follow...
@chunasapog
@chunasapog Год назад
Thanks for the tutorial, one of the very few that still works. It took me a whole day to find out that the game didn't run because of typing errors.
@frankiejrey
@frankiejrey 3 года назад
I watch the ads without skipping. I hope you get paid more, you deserve it. Thank you.
@donovanmiles7459
@donovanmiles7459 4 года назад
This series is literally god, took me from knowing almost nothing about GML to making a pretty sick game. Cheers Shaun!!
@robinorbitamusic7456
@robinorbitamusic7456 2 года назад
Thank you so much @Shaun Spalding for this series.
@RoseDragonX
@RoseDragonX 3 года назад
Exactly a year later, I'm starting to work on my action RPG thanks for making this
@asloppyjoedonut9616
@asloppyjoedonut9616 4 года назад
Yay im excited that u finally came out with this :) hope more episodes won't be far behind :)
@nightfury5387
@nightfury5387 4 года назад
In case anyone wants to know hSpeed = dcos(inputDirection)*speedWalk*inputMagnitude; vSpeed = -dsin(inputDirection)*speedWalk*inputMagnitude; Should be the same as lengthdir
@enzofilippo2720
@enzofilippo2720 4 года назад
thank you :)
@cronicasdeeberron8782
@cronicasdeeberron8782 3 года назад
Dude you just saved my life
@okayxairenlive
@okayxairenlive 4 года назад
oh my god. I had just started working on a new RPG game, but it was being made in RPG Maker so i didn't have much hope for it. Out of nowhere, this arrives. Thank you Shaun.
@SaraSpalding
@SaraSpalding 4 года назад
RPG Maker is very good! Some incredible games have been built with it. =)
@hylt0n
@hylt0n 4 года назад
IT'S HERE!
@pajopl
@pajopl 4 года назад
Thanks man, for this one and all of your other videos. The way you explain your actions has been helping me to understand GML better. I'm always encouraged to experiment and edit my code and most importantly, I understand what I'm doing, as opposed to copy and paste nature of any other online tutorials. You're a great teacher !
@SimonTower
@SimonTower 3 года назад
Thank you for the simple introduction, I found the tutorial very easy to follow. Looking forward to the rest of the series!
@oliverholmberg1462
@oliverholmberg1462 3 года назад
You are so good at explaining stuff!
@skelestonks
@skelestonks 3 года назад
I finally decided to follow your tutorials to learn more about Game Maker!
@SuperGamersgames
@SuperGamersgames 4 года назад
Nice! I'm glad you finally finished it! Or at least, finished the demo :P
@ziyuli1977
@ziyuli1977 4 года назад
Still going with your platformer's tutes but so good to see you making these new ones!
@maxvilocity
@maxvilocity 4 года назад
yussss! Been waiting :). (wonder why i didnt get the notification, youtube?) You're a very talented man shaun, thank you! Cant wait for the rest of the series!
@magic8ballin
@magic8ballin 4 года назад
This is a great Christmas gift, thank you Shaun!
@wangledteb5671
@wangledteb5671 4 года назад
omg hell yeah I can't wait to dig into this after I finish the action platformer one!! Between those two I feel like I'll have the knowledge to figure out how to do pretty much anything
@jamesgames5760
@jamesgames5760 4 года назад
thanks so much shaun your tutorials are really good also with the other platformer you mentioned in the video whenever you type oWall instead you need to type all this is 2020 and the all trick works :D
@SavvyDwagn
@SavvyDwagn 4 года назад
Awesome, can't wait for the rest of the videos.
@spacehunter2945
@spacehunter2945 3 года назад
Ok here we go guys I'm starting it
@slavdecepticon
@slavdecepticon 11 месяцев назад
Transitioning from scratch is going to be one hell of an adventure
@arsonisticone
@arsonisticone 2 года назад
Very amazing tutorial! You explained what everything does which most people don't. Thanks very much for the tutorial!
@joshc7154
@joshc7154 4 года назад
You're the best Shaun. Cheers
@NoLootStudios
@NoLootStudios 4 года назад
You are a king! We're making this sort of game atm, so hopefully we'll find some sweet code in this tutorial :D
@Sabrina0s
@Sabrina0s 4 года назад
shaun, there are no words for how many times you've already saved my ass.
@slimithy99
@slimithy99 4 года назад
Looking forward to this Shaun.
@slimithy99
@slimithy99 3 года назад
Coming back now that you have finished. Thank you for the 20 month commitment. Looking forward to working through it.
@user-wx9go1dr4f
@user-wx9go1dr4f 4 года назад
WOW! I never thought you would do something so cool, I love this content that gives us knowledge that we didn't know, I can't help with a lot, but I'll subscribe and leave a like here.
@hoolagin9264
@hoolagin9264 4 года назад
Thanks man, I always find your tutorials helpful
@iamnaudar
@iamnaudar 4 года назад
I am so hyped, thank you for this serie !
@KnightSquire
@KnightSquire 3 года назад
PLEASE HELP! Everything works but my player sprite shakes when moving diagonally, if I use round like this... hSpeed = round(lengthdir_x(inputMagnitude * walkSpeed, inputDirection)) it causes straight movement to speed up and diagonal movement to slow right down.
@djlawzon
@djlawzon 3 года назад
Having same issue. Stutters when moving diagonally. Did you manage to fix this? Thanks
@KnightSquire
@KnightSquire 3 года назад
@@djlawzon I did some things differently to Shaun, but basically I used round() or floor() on the camera movement and player movement. I'm so sorry I can't be more specific, but it was a while ago. If you persist with this series, Shaun talks through these functions, and I think rounds movement. You'll know what to do by then.
@Ani-pl2dv
@Ani-pl2dv 4 года назад
Nice ! I have trouble for making a Zelda fan game and I think this serie is gonna help me !
@NaudVanDalen
@NaudVanDalen 2 года назад
The benefit of putting everything in the step event versus using the built in keyboard events is that using lengthdir functions or alternate keys would be impossible or have glitches. You'd move faster diagonally and also pressing both an arrow key and the equivalent WASD key would make you move double as fast.
@yipyipyipi
@yipyipyipi 2 месяца назад
That took around two hours to figure out how to make joystick inputs work... but i got it :)
@theredoof7535
@theredoof7535 3 года назад
I’m going to follow every bit of this.
@NaudVanDalen
@NaudVanDalen 2 года назад
20:17 It's either next to the small left shift or if you have a large shift, it's above the enter key.
@drumming_cat
@drumming_cat Год назад
i've literally never seen a pipe character there next to shift before also isn't the backslash normally below the pipe (unlike this guy's keyboard)?
@robo-dog6569
@robo-dog6569 Год назад
@@drumming_cat depends on the keyboard, but its most commonly to the right of the left shift key
@drumming_cat
@drumming_cat Год назад
@@robo-dog6569 you sure? I've literally never seen it there on a keyboard ever until this video? unless that's a windows keyboard thing maybe (cause I usually use mac)?
@robo-dog6569
@robo-dog6569 Год назад
@@drumming_cat yours is probably different because it's a mac keyboard, that are mapped differently than most other keyboards
@Dandy_kyun
@Dandy_kyun 4 года назад
i'm so excited for this series, thank you so much for produce your awesome content, you really inspire me. :D
@ins8857
@ins8857 4 года назад
i've always wanted to make an rpg thank you for making this shaun :D!!!
@elementchann
@elementchann 3 года назад
Türk müsün kanka
@DragoniteSpam
@DragoniteSpam 4 года назад
Note - alt+enter is a Windows thing, not a Game Maker thing, it works for most games on Windows. (It can be useful if you're ever stuck in a fullscreen game that's stopped responding, or if you're playing something that's super old where fullscreen doesn't work properly or something.) It's probably more like unchecking the Allow Fullscreen Switching boxes disables the shortcut, instead of the contrapositive.
@Yoobster
@Yoobster 2 года назад
I followed everything but my character only can move diagonally can someone pls help me?
@Daebiya
@Daebiya 4 года назад
This is excellent! Can't wait for more.
@pyreling
@pyreling 4 года назад
Say okay... One more time.... Only jokes, love your tutorials. Super excited to work through this one after the top down shooter.
@mtr3754
@mtr3754 4 года назад
This is fantastic. You deserve things.
@danielcampos8986
@danielcampos8986 4 года назад
I will do it in my vacation :D
@Robbit_
@Robbit_ 3 года назад
If you want to use the left mouse button for, say attacking, change the attacking variable to mouse_check_button_pressed(mb_left);
@dotcat4151
@dotcat4151 Год назад
What's wrong with players shaking when they move diagonally? The smaller the player sprite (16x16) the more severe the screen shakes. If you do x=round(x), y=round(y) to the player, the screen will not tremble. However, the horizontal movement and diagonal movement distances will not be the same.
@kelteel
@kelteel 4 года назад
I create a different type of game, but I can see now stuff I want I will learn from this. Thanks man for awesome vids.
@HardCraftMovies
@HardCraftMovies 3 года назад
yeah boyyy, just finished the Platformer tutorial. Lets get into it :D
@BlackDogszz
@BlackDogszz 4 года назад
Hey shaun, thanks for the new walk through I always love your video's. I do have a question is there a reason you are setting your keys for movement in the step event so it re-fires every Step? It seems to me that this should have been done in the create step...
@silentiumdingo
@silentiumdingo 4 года назад
Awkward Monkey Games sorry for a late reply but I’m pretty sure it’s because as well as setting the keys, it’s also checking if it’s being pressed and he uses that for the movement which checks every step and not just when it’s created. I’m new to this so I might be wrong.
@gedeonjoop2757
@gedeonjoop2757 3 года назад
Very helpful. Thanks for making videos like these.
@vincentFGC
@vincentFGC 4 года назад
Really looking forward for more videos!
@thetruegoldenknight
@thetruegoldenknight 3 года назад
I saw you have done things A LOT differently than what *I* have, so since I don't have any other ideas on how to get diagonal movement correct, I must concede to your cleaner take on it, with putting those few lines in the STEP area.
@sleepysundaymorning5034
@sleepysundaymorning5034 3 года назад
There is a faster way to solve the diagonal movement: var diagonal = 1; if((hSpeed * vSpeed) != 0) { diagonal = sqrt(2)/2; } x += hSpeed * walking_speed * diagonal; y += vSpeed * walking_speed * diagonal;
@DankMemes-xq2xm
@DankMemes-xq2xm 3 года назад
commenting for later
@0x44_
@0x44_ 2 года назад
Sqrt functions use fewer lines of code but are notoriously slow in finding your answer. They use a lot more calculations than you would think unless GML is somehow unique among languages in that. That said, you could instead define the value sqrt(2)/2 as a constant, e.g. 0.70710678118, and use that.
@sleepysundaymorning5034
@sleepysundaymorning5034 2 года назад
@@0x44_ thanks for the technical remark! much appreciated
@synthoelectro
@synthoelectro 3 года назад
I'm a simple man, if I see an engine that is being used in the commercial market, and has success, allowing amazing looking games, I'm going to go that direction. I can't understand why I keep going back to trying Game Maker, since Godot is so popular now, but there are things about Godot that I can't follow, not to mention the particle system and other stuff is still improving. They say, Godot 4.0 will change everything, but I've been watching Godot for years, I just want to make games, GameMaker seems the way to do that.
@samcook6250
@samcook6250 4 года назад
I can’t wait!!!
@jonaha1717
@jonaha1717 4 года назад
Amazing tutorial, much gratitude!!
@crazyvelvet_
@crazyvelvet_ 3 года назад
If someone got stuck on line 14 and 15 just like me, I put it like this hSpeed ​​= dcos (inputDirection) * walkSpeed ​​* inputMagnitude; vSpeed ​​= -dsin (inputDirection) * walkSpeed ​​* inputMagnitude; and it was (but you have to change it in create to "walkSpeed" too
@jakeinalakevods
@jakeinalakevods 3 года назад
Oh thank you!
@dennisarnold6822
@dennisarnold6822 2 года назад
Hi shaun, ive done some of your other tutorials but this one looks really amazing so far, i want to do a game of this style and i understand most of what i see but before i get to deep i would like to add split screen to this having the second character i don't think will be to difficult the only issue im having is how to set up the split screen camera im not having a problem adding a second camera but getting them to not over lap and be a true split screen i cant seem to work out i have some ways of doing it but i was hoping to keep with you line of camera coding to the end so i didnt have any issues with the tutorial. Is there a quick way to adjust your camera code for this or would i have to do a completely diffrent coding for split screen. Thanks for any advice you can give love your tutorials they are amazing.
@RprtBak
@RprtBak 11 месяцев назад
I had an issue where the player would just SHOOT off into one direction. I made some changes (Also my syntax is a bit different so if you copy my code you'll probably need to change it to fit your project). I also had it output the MoveX and MoveY (Which for this tutorial was hSpeed and vSpeed) in the Output so you can debug any weird movement issues. // Step Event of O_PlayerCharacter // Keybinds for Player Movement KeyLeft = keyboard_check(vk_left) || keyboard_check(ord("A")); KeyRight = keyboard_check(vk_right) || keyboard_check(ord("D")); KeyUp = keyboard_check(vk_up) || keyboard_check(ord("W")); KeyDown = keyboard_check(vk_down) || keyboard_check(ord("S")); // Keybinds for other actions KeyActivate = keyboard_check_pressed(vk_space); KeyMenu = keyboard_check_pressed(vk_escape); KeyAttack = keyboard_check_pressed(ord("F")); KeyItem = keyboard_check_pressed(ord("E")); // Fix diagonal movement InputDirection = point_direction(0, 0, KeyRight - KeyLeft, KeyDown - KeyUp); InputMagnitude = min(1, sqrt(power(KeyRight - KeyLeft, 2) + power(KeyDown - KeyUp, 2))); // Update the player's position MoveX = lengthdir_x(InputMagnitude * MoveSpeed, InputDirection); MoveY = lengthdir_y(InputMagnitude * MoveSpeed, InputDirection); x += MoveX; y += MoveY; // Debugging output show_debug_message("MoveX: " + string(MoveX) + ", MoveY: " + string(MoveY));
@Gaguiceiro
@Gaguiceiro 10 месяцев назад
thanks for the ground work! I'm not gonna really make an rpg, but a survival top-down! Also, even though you fixed diagonal movement, I'm just gonna leave it in cause i want diagonal movement to be a way of speedrunning :)
@mohh929
@mohh929 2 года назад
I have done everything and when I press play it won’t run the game it keeps saying that the game failed. I’m on MacBook I’m not sure if that affects anything
@SilentxxBunnyTTV
@SilentxxBunnyTTV 4 года назад
Great video. Great tips on workspace navigation in this video (ie: full-screen code windows and right-clicking.) Much obliged.
@yulaserio
@yulaserio 3 года назад
I just purchased GMS2 and I begun creating my game. I'll watch this series to know more about GMS2. Let's see what happens :D
@alephcake
@alephcake 4 года назад
I don't know if anyone pointed that out already, but: If you want to bind something to mouse buttons, just do: = mouse_check_button(); In type 1,2,3 (left,right,wheel)
@lukamarko1037
@lukamarko1037 2 года назад
working step code: keyLeft = keyboard_check(vk_left) || keyboard_check(ord("A")); keyRight = keyboard_check(vk_right) || keyboard_check(ord("D")); keyUp = keyboard_check(vk_up) || keyboard_check(ord("W")); keyDown = keyboard_check(vk_down) || keyboard_check(ord("S")); inputDirection = point_direction(0,0,keyRight-keyLeft,keyDown-keyUp); inputMagnitude = (keyRight - keyLeft != 0) || (keyDown - keyUp != 0); //movement hSpeed = lengthdir_x(inputMagnitude * speedWalk, inputDirection); vSpeed = lengthdir_y(inputMagnitude * speedWalk, inputDirection); x += hSpeed; y += vSpeed;
@Putzreid3207
@Putzreid3207 Год назад
Literally a hero. I'm still not sure why my guy was only moving left and right but this has fixed it. I kind of wish i knew what i did wrong though. Thanks mate!
@leonah_r
@leonah_r 2 месяца назад
Dude I love you
@civetmink9060
@civetmink9060 3 года назад
Super helpful I really needed this
@suryadeveloper7139
@suryadeveloper7139 2 года назад
Good job bro! Keep it up. thanks for the amazing tutorial
@MrSchmatze
@MrSchmatze 4 года назад
there we go!
Далее
RESOLUTION guide for game devs & GameMaker
8:50
Просмотров 64 тыс.
1 Subscriber = 1 Penny
00:17
Просмотров 46 млн
I Made the Same Game in 8 Engines
12:34
Просмотров 4,1 млн
This is my new favorite map maker.
8:30
Просмотров 208 тыс.
Beginner GameDev Mistakes - Ep 1
6:40
Просмотров 165 тыс.
Why Starbound Failed
15:00
Просмотров 891 тыс.
I Paid Fiverr Game Developers to Make the Same Game
10:25
TAS Explained: Super Mario Bros. 3 in 0.2 seconds
19:39
Every Game Engine Explained In 9 Minutes (Part 1)
9:10
choosing a game engine is easy, actually
15:08
Просмотров 535 тыс.
1 Subscriber = 1 Penny
00:17
Просмотров 46 млн