GameMaker Studio 2: Complete Platformer Tutorial (Part 2: Animated Player)

2024 ж. 18 Мам.
643 305 Рет қаралды

▶ Source code: shaunjs.itch.io/shauns-comple...
▶ Part 1: • GameMaker Studio 2: Co...
▶ Support my work: / shaunjs
▶ Assets: www.shaunspalding.co.uk/files/...
New parts to this series released every other Friday.

Пікірлер
  • FOR THOSE WHOSE PLAYERS COLLIDE INTO WALLS WHILE JUMPING: Make sure your origin point is set to Middle Centre

    @t8ble846@t8ble8466 жыл бұрын
    • T8ble LIFESAVER. THANK YOU SO MUCH

      @xbox360funches@xbox360funches6 жыл бұрын
    • Thanks man..... it worked for me.... my player was sinking in the wall....

      @ahsananik345@ahsananik3456 жыл бұрын
    • Thanks bro a lot

      @lastomniverse9188@lastomniverse91886 жыл бұрын
    • HOLY CRAP THANK YOU

      @zal9706@zal97066 жыл бұрын
    • i was sinking in a wall figuring out what i was doing wrong aha

      @GENGY@GENGY6 жыл бұрын
  • I love how often he says: "Okay?" to make sure that we can follow xD

    @larsderlarry2741@larsderlarry27414 жыл бұрын
    • The Japanese do it a lot as well.

      @devoutdesciple@devoutdesciple3 жыл бұрын
  • Its sad to see that almost a million people saw the first video and only around 311k saw the second; people lose hope so quickly

    @shikhar7tube@shikhar7tube4 жыл бұрын
    • I’ve done exactly what he did in the last video but my game doesn’t work

      @hassanjomaa5084@hassanjomaa50843 жыл бұрын
    • @@hassanjomaa5084 what's happening?

      @ocuorat2776@ocuorat27763 жыл бұрын
    • @@ocuorat2776 yo I got a problem too I don’t know how to explain since I’m new but my player can’t move neither jumping or left and right. it works when I didn’t add in the gravity but doesn’t after I added in the gravity.

      @minnnngo2053@minnnngo20533 жыл бұрын
    • @@minnnngo2053 didn't you forgot some line? i don't really know what is happening because i don't know your code ( if you could send it in here or something like i maybe might help ) another thing you can do is question this on the gamemaker reddit, it's a good place for getting help Note: english isn't my first language so maybe i wrote something wrong so i'm sorry

      @ocuorat2776@ocuorat27763 жыл бұрын
    • @@ocuorat2776 well you see I copied exactly what he typed but I dunno what’s wrong maybe it’s my version of gamemaker studio

      @minnnngo2053@minnnngo20533 жыл бұрын
  • I always thought coding would be boring but its really fun especially when you come across a problem and have to try to solve it then when u get it u feel so happy.

    @notwho8825@notwho88256 жыл бұрын
    • perfect description. hope you've gotten far with coding after 4 years!

      @justawhitecat@justawhitecat2 жыл бұрын
    • how good are you at coding now?

      @ts4858@ts4858 Жыл бұрын
    • @@ts4858 he prob is better then me now.

      @M4G_123@M4G_123 Жыл бұрын
    • @@M4G_123 yeah

      @ALLlKU1@ALLlKU1 Жыл бұрын
    • beter than me to

      @ALLlKU1@ALLlKU1 Жыл бұрын
  • These tutorials are the whole reason why I was able to make my first game!

    @SjbninjaChannel@SjbninjaChannel6 жыл бұрын
    • @@Yellow_Flare I have the same question!

      @mrindolentgenuinelysucks@mrindolentgenuinelysucks3 жыл бұрын
    • @@Zworri gamecrafterstudios.itch.io/en

      @SjbninjaChannel@SjbninjaChannel2 жыл бұрын
    • I think everybody is just using this for their first game

      @TobiasWm@TobiasWm2 жыл бұрын
    • @@SjbninjaChannel yo that looks awesome! Good job dude.

      @spacemantiss@spacemantiss2 жыл бұрын
    • Same here! :D

      @JCVidZ0912@JCVidZ0912 Жыл бұрын
  • Hey guys, Just popping in to tell you that if you're having the issue of your sprite getting wider, then What worked for me and made it look normal was this line of code: "if (hsp != 0) image_xscale = sign(hsp) / 2.5;" I just added a /2.5 and there you go, no more wide putin. If you're having the opposite issue, I'd suggest you * 2, that way, your character will look normal, and your day won't be ruined!👌🌸

    @adrichuwu9173@adrichuwu91738 ай бұрын
    • u are a legend

      @Thulipa3@Thulipa37 ай бұрын
    • ye@@Thulipa3

      @jorisstudios6506@jorisstudios65066 ай бұрын
    • Thx

      @NielsGustafsson.@NielsGustafsson.6 ай бұрын
    • mine works at /0.5😅

      @hjorable1541@hjorable15415 ай бұрын
    • Thank you so much, legend.

      @maarcsayagoo@maarcsayagoo3 ай бұрын
  • The amount of details and labor is insane in these tutorials. Great source for beginners like me. Thanks a lot for the effort.

    @buraktugrul5231@buraktugrul52313 жыл бұрын
    • But How Do We Make Characters, If He Could Give The PNG Format Pic It Would Be Great!!

      @UMAoPLAYZ@UMAoPLAYZ2 жыл бұрын
    • @@UMAoPLAYZ not sure if you still need it, but use something like pixel art and save it to a file, then proceed to put that image as the player

      @Z3LN0X@Z3LN0X2 жыл бұрын
    • @@Z3LN0X Thanks For Your Valuable Comment, But I Have Already Finished My Project & Exported The Game Lol...

      @UMAoPLAYZ@UMAoPLAYZ2 жыл бұрын
    • I LOVE YOU I LOVE YOU

      @marcosfalco1954@marcosfalco1954 Жыл бұрын
  • yeah i understand... *(notices that i just followed everything he did and didn't listen to anything he said)*

    @thirstyboiii@thirstyboiii6 жыл бұрын
    • Savage - Mobile Legends that's so me XD

      @aliakeel@aliakeel5 жыл бұрын
    • Savage - Mobile Legends why mine split when i go left or right

      @djheavenagl4679@djheavenagl46795 жыл бұрын
    • That's so meee

      @anonymous_yo_mama6728@anonymous_yo_mama67285 жыл бұрын
    • @@djheavenagl4679 you need to put the origin point to middle center to all sprites. :3

      @m4theussszz@m4theussszz4 жыл бұрын
    • I did listen, but the first video I slowed the velocity down, it helped me

      @jerfersonmatos28@jerfersonmatos284 жыл бұрын
  • In case this helps anyone, my problem was similar to the top comment where it states to "Make sure your origin point is set to middle centre", but I was experiencing different behaviors than what everyone else was talking about. Behavior: Whenever I turned my character around they would "blink" forward by about the space of an entire block (32px or 64px depending on the size of your sprites) and sometimes, if there was a wall in its path, the character would get stuck in the wall. Two things seem to have fixed this. 1. Make sure ALL the sprites have their origin points set to middle centre. I believe the "blink" effect was because the origin point was set to the top left and I *think* image_xscale will, in addition to flipping the image, will flip the origin point to the top right corner. So what happens when you turn around is hsp = move * walksp is effectively (not literately) adding 32px since the origin point moved 32px. 2. From my understanding, your collision mapping should be equally padded or you'll run into issues with your character getting stuck in the wall. What do I mean by padded? if one side is 14 pixels away from the edge of the sprite box, the other side needs to be 14 too. If you have 14 pixels of empty space on the left and 15 pixels on the right, it might cause that issue.

    @viridianloom@viridianloom Жыл бұрын
    • thanks for solve this problem and i fixed it

      @nguyenviet6100@nguyenviet610010 ай бұрын
    • You're a life saver, definitely upvoting this comment, the whole origin point thing went over my head ❤

      @abdulsadek8911@abdulsadek89113 ай бұрын
    • @@abdulsadek8911 Glad to hear my solution helped! Thanks for dropping a kind word.

      @viridianloom@viridianloom3 ай бұрын
    • THANK YOU SO MUCH!!!

      @anastasiacastle7875@anastasiacastle787520 күн бұрын
  • for anyone who resized their character ingame and is having issue with the flipping, i used this //you could probably change the amount of times you add "sign(hsp)" // make it add itself till its equal to the amount of size its supposed to be if (hsp != 0) image_xscale = sign(hsp) + sign(hsp);

    @ccrww@ccrww Жыл бұрын
    • Thanks! looking for a fix for that exact problem

      @kamaraaaa@kamaraaaa Жыл бұрын
    • this was SO HELPFUL tysm

      @GingaTea01@GingaTea01 Жыл бұрын
    • YOU ARE A LIFE SAVER TYSMM

      @infin-ite@infin-ite Жыл бұрын
    • it teleports

      @lvgaming4253@lvgaming4253 Жыл бұрын
    • THANK YOU IT WORKED you da best

      @lvgaming4253@lvgaming4253 Жыл бұрын
  • Just started this series and I'm loving it so far... very well presented. Already reworking some of the code from the first episode to customize and tweak my game. Sub easily earned.

    @drewskidmore9392@drewskidmore93926 жыл бұрын
  • These videos are still super helpful 4 years on. Thanks so much.

    @Crippledpoet@Crippledpoet3 жыл бұрын
  • I made my own sprites with Aseprite and my charecter looks so goofy. But it's fun making my own "art". It looks like trash, but whatever, its *mine* :p Keep these tutorials coming, they are really helpfull and easy to follow.

    @TheSchnensch@TheSchnensch6 жыл бұрын
    • The Schnensch I feel that's the most important part when creating anything. You never stop learning, so own what you make! ^-^

      @Little1Cave@Little1Cave6 жыл бұрын
    • you can use miku miku dance mmd models to sprintes I made one it was good! you can download walk motion search in niconico videos if not found try copy it and paste in niconico search " MMD 歩きモーション "

      @arrowchxshadow_arrow8371@arrowchxshadow_arrow83715 жыл бұрын
    • Bruh

      @aryanshahab1594@aryanshahab15945 жыл бұрын
    • It aint much but its honest work.

      @persona3chainsawman@persona3chainsawman5 жыл бұрын
    • Mine are literally just blobs

      @jcnew2734@jcnew27344 жыл бұрын
  • I have had so much fun with this tutorial so far. Whenever I am not working in Gamemaker I am creating art on the go. Just can't wait to have that full game. At the end of each video I am very happy with the progress, so I thank you!!

    @a.m.hernandez3837@a.m.hernandez38376 жыл бұрын
  • Thanks Shaun, loving your videos. This is a great resource. I especially enjoy that you explain what EXACTLY happens in a lot of cases (for example: the collision box automatically gets set around the non-transparent pixels). That gives me a feeling that I understand, vs just knowing how to do a specific thing.

    @ilanfl1234@ilanfl1234 Жыл бұрын
  • Great tutorials! Coming into this knowing code slightly, it really helps when you explain what the code does! I've made my character double jump and several other things just through your explanations!

    @MetalGalacticUnicorn@MetalGalacticUnicorn6 жыл бұрын
  • 21:50 dude THANK YOU for those tangents, they really help me understand wtf everything means. DONT stop that.

    @Baleur@Baleur3 жыл бұрын
  • Here in 2023 and this is still one the easiest to follow tutorials out there. Thank you!

    @maxxpower9916@maxxpower9916 Жыл бұрын
  • I've been following along and learning more from you than any other tutorial, the way you constantly go back over things helps me remember what does what and you're a great teacher! Making a marshmellow game. Anyway, thank you! Much appreciated and lots of love

    @Kitty_Cosmic@Kitty_Cosmic4 ай бұрын
  • Thank you so much for these tutorials! I started off making games from scratch in python/pygame and after my 3rd game i had enough so I came to GameMaker Studio 2 and your tutorials are helping me alot.

    @corpshacker@corpshacker6 жыл бұрын
  • Your Tutorial videos are as awesome as you Shaun. I was never into coding but thanks to you I am now!

    @ParTzzaN@ParTzzaN3 жыл бұрын
    • Happy to help!

      @ShaunJS@ShaunJS3 жыл бұрын
  • If anyone is having problems cause their player sprite is colliding into walls while jumping, or it's got a weird dragging effect; Make sure your origin point is set to Middle Centre for all of your sprites (thanks T8ble) Check to see what your oPlayer object's Collision Mask is. Looks like it should be sPlayer.

    @DanteCorwyn@DanteCorwyn2 жыл бұрын
    • Hey, thanks so much I ran into this problem and tried for 30 mins to fix it.

      @ocg9922@ocg9922 Жыл бұрын
    • thank you so much bro.

      @pufvv@pufvv Жыл бұрын
    • THANK YOU!!

      @kennywithers8503@kennywithers85039 ай бұрын
    • it is still draggin

      @user-cc5xo7nx2h@user-cc5xo7nx2h8 ай бұрын
    • Thank you Dante, I was so damn confused

      @jeezybreezy9765@jeezybreezy97657 ай бұрын
  • Thank you for these. As you say... "Beautiful, Elegant" way of handling these tutorials. Keep it up M8.

    @WilliamGarrisonArts@WilliamGarrisonArts5 жыл бұрын
  • this series has already been so useful, i have been learning GML on my own now too, i could probably do all the movement again without a tutorial now, thx for this, time for guns now!

    @nynx7301@nynx73012 жыл бұрын
  • Hi Shaun, I just wanted to say that this tutorial series in particular is exactly what I'm looking for. My ultimate goal is to tackle an RPG in the future, but I figured a platformer would be a great way to learn the fundamentals and the basics of game programming using GMS2.As you make more videos in this series I was wondering if you could cover/incorporate a couple of preferred items.1. Double jump2. Wall jump to reach higher platforms3. Permanent power ups vs. temporary power ups.4. Walk vs. Run5. Duck6. Ledge grab7. Equiping a different guns (ex. switching from a 6 shooter to a machine gun)8. Health damage and health powerups9. Animating the hero as he stands still/idle10. Intro cut scenes / Game start screenI'm sure you are already thinking about a number of these but I just wanted to mention them none the less. Cheers,

    @digitalswordplay@digitalswordplay6 жыл бұрын
  • I came here from a programming background, so although I knew the logic stuff and code you were explaining, I still really appreciated the way you taught it. I have never (not even on paid causes) found something so easy to follow and understand. thank you

    @twisterclone2917@twisterclone29176 жыл бұрын
    • Twisterclone would you mind helping me with mine? im stuck on how he was able to make to 4 frames of his character running. it's my first time ever doing anything with coding and I'm just curious if I could copy his player with a link or something

      @petervargas7136@petervargas71365 жыл бұрын
  • I watched this when I was just starting and now I'm watching this for the memories. Thanks for everything!

    @user-og4nk2vz1k@user-og4nk2vz1k5 ай бұрын
  • All of your videos have helped me out so much! My dad and I have created quiet a few games because of you.

    @isaacnavin8338@isaacnavin83383 жыл бұрын
  • Your first tutorial made my mom proud of me

    @idk9520@idk95203 жыл бұрын
  • for all of the people that their character is bugging out on the ground you need to put the origin point to Middle Centre to all of your sprites

    @PinguinAutiste@PinguinAutiste9 ай бұрын
    • thx, i was wondering what was happening

      @haroonhanif80@haroonhanif808 ай бұрын
    • I’ll see if this works

      @leawilson5630@leawilson56307 ай бұрын
    • Thanks so much mine was broken

      @leawilson5630@leawilson56307 ай бұрын
    • done that but the bug is still here

      @casian1508@casian15086 ай бұрын
    • @@casian1508 restart the app(or pc) or recheck if the origin point is at middle centre on all the game sprites

      @PinguinAutiste@PinguinAutiste6 ай бұрын
  • this man is a godsend

    @turlte1236@turlte1236 Жыл бұрын
  • Thank you so much! What would I do without you! I was looking for those kinds of tutorials everywhere and it was very difficult to find any of these! Again thank you very very much!

    @Miles_Files@Miles_Files4 жыл бұрын
  • Hello, I got to say you've helped me find my motivation on game design again. I did some poor joke games with old game maker when I was 9 until I was 14 when I started to play music. I kinda kept the dream of making games in the back of my head and had few ideas I never even started because of time constraints. Now I'm 24 and I am unemployed so I finally have time to learn this stuff again and better than I ever did. Your tutorials are great reminder and teach a lot of things I couldn't do back in the day. Thank you! I will surely become a Patreon next month!

    @nylonnerves8422@nylonnerves84225 жыл бұрын
  • Shaun, I wanted to apply a somersault animation in between the jumping and falling sprites in the code. But where in the line(s): if (!place_meeting(x,y+1,oSolid)) { sprite_index = sShinobi_Jump; image_speed = 0; if (sign(vsp) > 0) image_index = 1; else image_index = 0; } Can I do that? Can anyone help me as well? Thank you

    @kibegamimultimedia@kibegamimultimedia4 жыл бұрын
  • thanks for making this tutorial series! I know it has been a few years, but it helped me understand coding a platformer type game. I have been practicing with some sprites following along and it's been fun learning this. I hope to actually get to make my first real platformer sometime soon. :3

    @Wrathgir@Wrathgir Жыл бұрын
  • thanks a lot. you're the only one on the Internet who explained and showed how to write code that can be written in a simple game maker

    @mephilesdark7393@mephilesdark73936 жыл бұрын
  • Not going to lie, your accent makes your tutorials much easier to follow. Honestly, it makes you sound really intelligent.

    @spoonspoon8755@spoonspoon87556 жыл бұрын
    • lol so true

      @P.W.Plays76@P.W.Plays763 жыл бұрын
  • A lot of people's problem here comes from the collision mask of sPlayer I think. I set it to automatic and all of my problems disappeared. Thumbs up for people to see it !

    @Mangoles@Mangoles6 жыл бұрын
    • thx

      @Codamations@Codamations5 жыл бұрын
    • Change the collision mask in the object properties from "same as sprite" to s_player also worked for me :3

      @matsbueno@matsbueno4 жыл бұрын
    • I made an idle animation for my character to bob up and down. For some reason, when he is standing on the ground, he will lift upward when the bobbing down animation starts. Any idea how to fix this?

      @smellslikemeltingplastic@smellslikemeltingplastic4 жыл бұрын
    • Yo! My guy! This fixed like 3 issues I was having! Thank you.

      @JForth@JForth2 жыл бұрын
    • TTTTHHHXXXXXXXXXXX YOUR THE BEST!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1

      @T_M.E@T_M.E2 жыл бұрын
  • This is fun, thanks! Everything is so easy in GameMaker. And I love your explanations too.

    @xDMrGarrison@xDMrGarrison Жыл бұрын
  • The most success with gm i've had so far. Thank you.

    @lebobshark@lebobshark2 жыл бұрын
  • To the people who have the problem where the character gets thinner: if (hsp < 0) image_xscale = -3; if (hsp > 0) image_xscale = 3; In my case the numbers were 3, but it may change depending on the sprite.

    @Maefiosa@Maefiosa3 жыл бұрын
    • You are a LIFE saver

      @Schizomi7467@Schizomi74673 жыл бұрын
    • Thank you for posting this. This problem was making me crazy

      @splash_0_color616@splash_0_color616 Жыл бұрын
    • what about if my sprite gets wide?

      @muffinsstuff@muffinsstuff8 ай бұрын
  • general tip, put this in your create event: sIdle = sPlayerIdle sRun = sPlayerRun sFall = sPlayerFall this will basicly allow you to refer to sprites as sIdle and sFall in a simpler way. and if you end up changing the name of a sprite you can change the sprite here without having to go trough and manually changing all sprites

    @_doglo@_doglo10 ай бұрын
    • hey, ı have a problem with movment, when my player hit the ground all animations work wery well but my player just dosn't move any more, ı can control it when ı jump it but when touch the ground it just dosn't move. Can you help me ?

      @atakancanpolat1103@atakancanpolat11035 ай бұрын
    • @@atakancanpolat1103 `this can be caused by multiple things. number 1: collision mask. if you switch to a different sprite you also switch the collision mask, meaning that during the transition from fall to idle/walk the coll mask might get stuck in the floor. this is fixed by just having the same collision mask for all sprites or setting the standart collision mask in your player object. number 2: not checking collision properly. ive made the mistake of sometimes putting if place_meeting(x, y, oWall) instead of if place_meeting(x, y+vsp, oWall). this makes it so that it will clip into the wall hope this helps

      @_doglo@_doglo5 ай бұрын
    • @@_doglo thank you man you literally helped me I was mad I just couldn't undesrtand why id didn't work it was all collision mask fault

      @tamaz_kamaz7980@tamaz_kamaz79804 ай бұрын
    • @@tamaz_kamaz7980 no problem! happy i could be of help👍

      @_doglo@_doglo4 ай бұрын
    • thanks man i'll keep that in mind

      @uanamenezes7689@uanamenezes76893 ай бұрын
  • Another amazing tutorial. I really feel like you're making the best tutorials I've ever seen. So detailed and you're not rushing through. I appreciate this level of tutorial. My video tutorial anxiety doesn't overwhelm me. I know this is 6 years late, but great job, I hope you keep up the amazing work! Seeing my character move around through my own control brings a tear of accomplishment to my eye.

    @bahamutaxiomx8706@bahamutaxiomx87067 ай бұрын
    • how did u download his assets?

      @flolko4412@flolko44127 ай бұрын
    • @@flolko4412 Oh, I didn’t. I’m just following along with my own test sprites and making boxes the same way they are in the video.

      @bahamutaxiomx8706@bahamutaxiomx87067 ай бұрын
    • @@flolko4412 If you use Edge it will let you download the assets.

      @FallenAngelMhr@FallenAngelMhr6 ай бұрын
  • These tutorials are very useful. I needed a fresh reminder on working with Gamemaker Studio 2. Sort of works a bit different from Gamemaker 8.1

    @DG-iw2ig@DG-iw2ig3 жыл бұрын
  • YOU ARE THE COOLEST

    @valeriahernan@valeriahernan5 жыл бұрын
  • If your player still get stuck into walls,try this: -Set collision mask to manual -Make sure the collision mask covers all your player's feet -Make sure that all your player sprites and their collision mask are on the same level it works for me

    @chenmike8237@chenmike82375 жыл бұрын
    • You're a saint

      @ControlNumber@ControlNumber4 жыл бұрын
    • Make sure your sprites are a consistant size 32x32, 64x64 whatever so the "feet" in one animation dont cause it to clip below the feet in another animation, enter the falling animation, collide IN the floor, and start the loop over.

      @christopherbambino6984@christopherbambino6984 Жыл бұрын
    • 5 years later - and still thank you. Was just getting a bit frustrated over this. Collision mask helped.

      @upsher@upsherАй бұрын
  • cannot thank you enough for these tutorials, re igniting the fire

    @fj-kv@fj-kv3 жыл бұрын
  • Dude you are the best, your tutorials are the best what i can find on youtube! Thanks for your work)

    @ivarskursitis601@ivarskursitis6015 жыл бұрын
  • This tutorial is amazing and is essentially my introduction to coding, but I do very much wish you would cover animating asymmetrical sprites, instead of just flipping the sprite to face your ideal direction. Everything I've tried just impedes the player character's movement. It'd be very much appreciated!

    @kayculdraws@kayculdraws6 жыл бұрын
    • Try doing a sign hsp check for the direction

      @moo1493@moo14933 жыл бұрын
  • Hey shaun, I love your videos but I am stuck, after I made the jump animations for some reason my player is colliding half way through the wall objects, the collision mask is set to "same as sprite" on the wall objects

    @eastbayhawk@eastbayhawk6 жыл бұрын
    • You have to go to sPlayerA and sPlayerR and make sure they are set to "middle-center" as well as sPlayer. My character sprite was clipping halfway through the blocks until I changed this.

      @TheNexusInfo@TheNexusInfo6 жыл бұрын
    • yeah i figured this out after the fact haha. thanks!

      @eastbayhawk@eastbayhawk6 жыл бұрын
    • thank you soooooo much

      @lando5053@lando50536 жыл бұрын
    • This didn't work for me, but changing the collision mask to sPlayer from Same as Sprite worked. If that's useful to anyone else.

      @thrownstair@thrownstair6 жыл бұрын
    • God thank you this was driving me nuts.

      @csidesummit6436@csidesummit64366 жыл бұрын
  • these videos have been a real help to me so thanks for the help and for explaining things so clearly

    @stefiw5227@stefiw52274 жыл бұрын
  • This series is wonderful.

    @bryymiller2475@bryymiller24755 жыл бұрын
  • Instead of reading the GMS2 user manual I wish they just had a short video recording of Shaun explaining how each function / variable works in his own words. Then I could watch those videos and think, "Okay, I get it now."

    @christophermaher3994@christophermaher39946 жыл бұрын
  • i have a problem, my character only jumps when i include the second part with running.

    @tony-li7pm@tony-li7pm5 жыл бұрын
  • Dude I'm sooo thankful for these tutorials!!!!

    @richardcsomor8262@richardcsomor82622 жыл бұрын
  • You don't have to be sorry. I am looving every second of the explanations. It ensures we know what we are doing. Also better than not giving enough detail. We aren't in a rush because Miyamoto said good games are good forever but bad games are bad forever. Or something like that. Thank you!

    @gamermasta525@gamermasta5253 жыл бұрын
  • If Someone have Flipping sprite Issue, Image scaling Issue Do check this code replace it with existing Code of Image_xscale - "if (hsp != 0){ if (hsp > 0){ image_xscale = 3; } else image_xscale = -3; }"

    @sumit54686@sumit546862 жыл бұрын
    • thank you so much

      @birdiesakura1918@birdiesakura19182 жыл бұрын
    • OMG u helped me so much thank u

      @katekk3483@katekk34832 жыл бұрын
  • best thing about this tutorial no cap is if you don't make it turn around, then when you run, your character moonwalks backwards

    @AZASeraph@AZASeraph3 жыл бұрын
  • This is bringing me much joy!

    @PureBlackDragon@PureBlackDragon Жыл бұрын
  • These videos are great, a lot of tutorials show you how to code things but with yours I actually understand WHY the code works. Whether I'll remember it is another story lolol

    @BuzzardPlanet97@BuzzardPlanet973 жыл бұрын
  • Whenever I put in the image you say it is supposed to put sprites into animation by itself but it no do dat help me please

    @jameshockett5794@jameshockett57945 жыл бұрын
  • My jump is odd, if I jump during my walk cycle it starts my animation with the final frame of the jump instead of the first fram. Works fine when i stand still.

    @KINGGEORGEIO@KINGGEORGEIO3 жыл бұрын
  • Thank you for these brilliant tutorials 👍

    @caradaly1661@caradaly16612 жыл бұрын
  • Thank you for these tutorials. These tutorials have inspired me to create and code games that i can sell on Steam. Thank you :D

    @mftofficial8972@mftofficial89725 жыл бұрын
  • Your tutorials are awesome and help me in so so many ways. Question, will you ever make a RPG tutorial?

    @michellechen8461@michellechen84616 жыл бұрын
    • Michelle Chen yayayaya I want that too

      @startailchan@startailchan6 жыл бұрын
    • I am quite sure that there is one, but it may be for GMS1

      @yashsaksena2763@yashsaksena27636 жыл бұрын
    • +1 for RPG tutorial

      @AndrewWooldridge@AndrewWooldridge6 жыл бұрын
    • heartbeast channel has make a great rpg tutorial. FriendlyCosmonaut channel are making a great farming RPG tutorial.

      @hiauuu@hiauuu6 жыл бұрын
    • heart.beast is also fantastic

      @TheNexusInfo@TheNexusInfo6 жыл бұрын
  • When I try uploading my player movement it shows in 1 frame and not in more like his.

    @dannykolevv2234@dannykolevv22344 жыл бұрын
  • In the end i made the aniation with a complete different code because it would not with the sleep mode of the player and that the glowing eye of the player at the frame 30 is still there if you turn around (i used different sprites for right and left because the glowing eye should not switch from the right to the left eye if i turn around) however i only came up with how i can do it for myself better after i watched what you did so THANK YOU 👌❤ Ps: i really like how you explain every step for beginners, even tho i don't need it because i can write C++ and there is only a small gap between those languages it is really nice and it just shows how nice you done this series keep it up 👍

    @shion126@shion1266 жыл бұрын
  • thank you so much for making these videos

    @urdadmido3001@urdadmido30014 жыл бұрын
  • Whenever i land on the ground, my idle and falling animation started flickering repeatedly while sinking into then ground. Please help?

    @FoldingFrames@FoldingFrames5 жыл бұрын
    • I need help on this we need to get a bunch of likes for ppl to see this

      @fate_flufffy3974@fate_flufffy39744 жыл бұрын
    • it's a hitbox error

      @crisdandy8056@crisdandy80564 жыл бұрын
    • @@spookytheghost5877 thanks

      @FoldingFrames@FoldingFrames4 жыл бұрын
    • Solved. Check all the sprites to have origin just half of the width and height of sprite and set object collision mask to the player collision mask.

      @hhcdghjjgsdrt235@hhcdghjjgsdrt2354 жыл бұрын
    • @@hhcdghjjgsdrt235 Thanks man fixed my issues!

      @jameswillemse9981@jameswillemse99814 жыл бұрын
  • if you have an animation for your jumping / falling animation you should change the code to this: //Animation if(!place_meeting(x,y+1,oWall)) { image_speed = 0.5; //or speed 1 is fine too sprite_index = (putnameofanimationspritehere); if (sign(vsp) > 0) { sprite_index = (putnameofanimationspritehere); }

    @atomic1611@atomic16115 жыл бұрын
    • It does it when it jumps but as soon as it starts to fall it the animation changes how do I keep it so the animation stays until it lands on the ground ?

      @reecewelland8947@reecewelland89472 жыл бұрын
    • @@reecewelland8947 got same problem

      @ps4ljaska683@ps4ljaska6836 ай бұрын
    • Thanks man this helped alot

      @blacklight6090@blacklight60903 ай бұрын
  • Thanks for your amazing tutorials! What I like is that you explain what your doing. :P

    @robaxtom@robaxtom6 жыл бұрын
  • It’s fun to finally see my character animate while walking and jumping

    @corvidcosmo@corvidcosmo Жыл бұрын
  • i have a question, hope someone can help me! i'm following this tut. but i have different animation for the jumps! my animation is made by 12 frames (cause i put a"charging" effect in the sprite!) how i can tell to gms2 to read all the frames in code instead of choosing one of 2 frames like @shauns did!?

    @revengewebstation@revengewebstation6 жыл бұрын
    • Just run it by default and it should be in an animation. You can set the frame per picture to make the animation slower or faster in the sprite editor.

      @peterdavids31@peterdavids316 жыл бұрын
    • image_speed = 1;

      @wtait99@wtait995 жыл бұрын
  • I followed the tutorial, have all sprite collision boxes on middle center. When I walk down a ledge my character starts glitching and slowly floats down then when it hits the ground it freezes and I cant even close the program (without using task manager) Whats going wrong??? (MY CODE VVV) //Get Player Input key_left = keyboard_check(vk_left); key_right = keyboard_check(vk_right); key_jump = keyboard_check_pressed(vk_space) //Calculate Movement var move = key_right - key_left; hsp = move * walksp; //Horizontal Collision if (place_meeting (x+hsp,y,obj_wall)) { while (!place_meeting(x + sign(hsp) , y, obj_wall)) { x = 1 + sign(hsp); } hsp = 0; } x = x + hsp; vsp = vsp + grv; if (place_meeting(x,y+1,obj_wall)) && (key_jump) { vsp = -7; } //Vertical Collision if (place_meeting (x,y+vsp,obj_wall)) { while (!place_meeting(x , y + sign(vsp), obj_wall)) { y = y + sign(vsp); } vsp = 0; } y = y + vsp; //Animation if (!place_meeting(x, y + 1, obj_wall)) { sprite_index = spr_Airborn; image_speed = 0; if (sign(vsp) > 0) image_index = 1; else image_index = 0; } else { image_speed = 1; if (hsp == 0) { sprite_index = spr_player; } else { sprite_index = spr_playerRunning; } } if (hsp != 0) image_xscale = sign(hsp);

    @PhoenixLondon@PhoenixLondon6 жыл бұрын
    • my origins on middle center tho

      @PhoenixLondon@PhoenixLondon6 жыл бұрын
    • I'm having this same issue, when I find a fix I will let you know.

      @IceTrayFR@IceTrayFR6 жыл бұрын
    • Got it fixed for me. Open up your player's object properties and make sure you set a mask. It's located right under where you choose a sprite and parent for the object. Once I set the mask to my spr_player it worked just fine.

      @IceTrayFR@IceTrayFR6 жыл бұрын
    • TYSM!

      @PhoenixLondon@PhoenixLondon6 жыл бұрын
    • i know im watching this xtremely late but thanks bro (:

      @AmbientSoundscape16@AmbientSoundscape166 жыл бұрын
  • very nice video explaining the basics! will come in handy in other programming languages as a base too!

    @buddhist_realm@buddhist_realm2 жыл бұрын
  • great tutorials, your a great teacher I'm learning alot

    @teejay1306@teejay13064 жыл бұрын
  • For those of you who are having glitching problems, make sure your sprites are all set to MIDDLE CENTER.

    @lego-man2821@lego-man28216 жыл бұрын
    • MY HERO

      @poopdooper6073@poopdooper60732 жыл бұрын
    • love you

      @kashima-no-kamixd8463@kashima-no-kamixd84632 жыл бұрын
    • you are an amazing human or alien i don't think a human could be this smart

      @pixelspodcast7637@pixelspodcast7637 Жыл бұрын
    • THANK YOU

      @Ax0lotl12@Ax0lotl12 Жыл бұрын
    • THANKYOUUUU SO MUCH

      @TheFrostWalker@TheFrostWalker Жыл бұрын
  • so everytime you wanna check a variable's value on an "if" conditional we should put double equals (==) ?

    @FranckOlive@FranckOlive4 жыл бұрын
    • Yes

      @MsPinky1306@MsPinky13063 жыл бұрын
  • Super helpful thank you this is really helping me make my game keep it up

    @citraatishali3807@citraatishali38076 жыл бұрын
  • i love this kind of tutorials thx very much bro, a hug from Spain☺

    @electric4761@electric47612 ай бұрын
  • Make sure all your sprites used have identical collision masks. Mine were not and my character would randomly stop moving at times :p

    @ivantempski8130@ivantempski81303 жыл бұрын
  • weird stuff : when using image_xscale = sign (hsp); my character is stretched horizontally, i've not used any arbitrary number or anything what did i do wrong? could it be something happening in the sprite?

    @FloMoonYeah@FloMoonYeah2 жыл бұрын
    • nevermind i found the problem... for those who are having the same issue : My player Object was downscaled by default to reach 64 pixels, so when applying a xscale on the sprite, it would reset the scale of x to the original 128 pixels (but not the yscale) so make sure your sprite is at the size it's supposed to be ingame

      @FloMoonYeah@FloMoonYeah2 жыл бұрын
    • @@FloMoonYeah thanks, i had this problem

      @joebesideyou1457@joebesideyou14572 жыл бұрын
    • Thank you so much i was trying to fix this all day.

      @temopod9426@temopod94262 жыл бұрын
    • @@FloMoonYeah so how did you fix it?

      @bubko-fw7tp@bubko-fw7tp2 жыл бұрын
    • @@bubko-fw7tp if you scaled ur sprite while in room0 that is why its happening, just delete ur sprite from the room and re-add it and dont mess with the size

      @mATtGFXofficial@mATtGFXofficial2 жыл бұрын
  • Still awesome stuff. Thank you Shaun.

    @PaRaZzOiL70@PaRaZzOiL70 Жыл бұрын
  • what i really liked about heartbeasts's rpg tutorial is that he asked the audience to do small things without instruction (then said how to do it of course.) i think that everyone, at least to a certain extent, learns by doing.

    @gametrain5780@gametrain57806 жыл бұрын
  • If anyone of you have a problem with the player getting "stuck" in the ground, or just walks very unsmoothly, check your collision mask. good luck!

    @ag4162@ag41625 жыл бұрын
    • OMG thank you! All I had to do was change the collision mask from "Same as Sprite" to the walking animation. Thank you!

      @TheTNTerminator@TheTNTerminator5 жыл бұрын
    • @@TheTNTerminator thank youuuuuu

      @anto_cecchi6133@anto_cecchi61335 жыл бұрын
    • Lifesaver

      @ruben77ful@ruben77ful5 жыл бұрын
    • @@TheTNTerminator how did you do it ?

      @burgaskilek1157@burgaskilek11575 жыл бұрын
    • @@burgaskilek1157 You have to change the collision mask on the object from Same as Sprite to the Walking Sprite.

      @TheTNTerminator@TheTNTerminator5 жыл бұрын
  • I need help, when I start to move left of right, my animation swaps through my player and my running animation. Jumping is fine, I only have trouble with running.

    @rickthebirdie@rickthebirdie5 жыл бұрын
    • Me too, so after 2 years have u known how to fix it?

      @duynguyenanh6320@duynguyenanh63203 жыл бұрын
    • @@duynguyenanh6320 l have the same problem and hope to know the secret as well :P

      @thelegendarymushroom80@thelegendarymushroom803 жыл бұрын
    • @@thelegendarymushroom80 Do any of you know? Please answer.

      @gobro3900@gobro39003 жыл бұрын
    • @@gobro3900 I'm sorry, l do not know :C

      @thelegendarymushroom80@thelegendarymushroom803 жыл бұрын
    • @@thelegendarymushroom80 damn...

      @gobro3900@gobro39003 жыл бұрын
  • very good. I just bouth your source yesterday, waiting for it thanks.

    @gannicus1251@gannicus12515 жыл бұрын
  • These turorials are great

    @mattbell1907@mattbell19075 жыл бұрын
  • followed the coding to a t, yet somehow when the player stops holding the movement keys while on the ground, they are unable to move again until they jump. any fixes?

    @cloudedarctrooperdtq3532@cloudedarctrooperdtq35322 жыл бұрын
    • same problem

      @andreawerner8497@andreawerner84972 жыл бұрын
    • Really really wish there was a fix because I've followed exactly what he said and experienced the same problem as you

      @FoxLife64@FoxLife642 жыл бұрын
    • PROBLEM SOLVED!!! Make sure ALL of your player sprites are middle centre including jumping and moving sprites. Also make sure the hitboxes on all of the player sprites are the same

      @andreawerner8497@andreawerner8497 Жыл бұрын
  • I noticed an underscore is required before the "strip[number]" when naming a spritesheet. At first I tried it with a dash and it didn't recognise my sprite as a multiple

    @stefan33uk@stefan33uk3 жыл бұрын
    • pklz how i can find aassets idolwoad assets it only give me amepty paper argh im so fucking maD

      @Yhsman2999@Yhsman29993 жыл бұрын
  • i really love your videos its really helpfull and interactive

    @DJRTMC@DJRTMC3 жыл бұрын
  • just awesome, thanks man and congratlations! XD

    @MeninoTedioso@MeninoTedioso3 жыл бұрын
  • when i walk my character walks through the ground. it doesnt happen when i jump, turn og stand still though, please can someone help me ? :(

    @aslakhomme5151@aslakhomme51516 жыл бұрын
    • i dont know

      @kagan5320@kagan53206 жыл бұрын
    • infinite

      @kagan5320@kagan53206 жыл бұрын
    • infininte

      @kagan5320@kagan53206 жыл бұрын
    • hi

      @kagan5320@kagan53206 жыл бұрын
    • Make sure your origin point is set to the middle centre.

      @robinschonfisch1663@robinschonfisch16636 жыл бұрын
  • Hey Shaun. I'm not the best at creating pixel game art, and I can't find any good pixel art characters online. I downloaded the assets that you provided in the link description, and I was wondering if I could publish my game using your assets. So my question is, could I use your assets in a game and publish it, and if this is allowed, what would the license of the assets be(will credit be needed or not?)

    @krishnajawale7418@krishnajawale74186 жыл бұрын
    • if i'm right your allowed to use them because he hasn't licensed them

      @benforey3254@benforey32546 жыл бұрын
    • +ben spider thanks ;)

      @krishnajawale7418@krishnajawale74185 жыл бұрын
    • Noice wats ur game called?

      @imwatchingthisvideo2999@imwatchingthisvideo29995 жыл бұрын
  • Thank you, Shaun!

    @TH3M4G1CM4Nx@TH3M4G1CM4Nx4 жыл бұрын
  • Hello Shaun! I'm doing your tutorial for a game i'm creating with lot of friends in the Global Game Jam 2021. I was trying to download the assets from the link you put in the description, but it just close right after i click. Also congratulations for the awesome tutorial! It is fast, direct to the point and complete! :)

    @raffaelrodrigues6431@raffaelrodrigues64313 жыл бұрын
  • my character keeps flickering form one sprite to another in a different place. when the character falls it flickers between the stand and fall sprites, and when i move t does the same thing. how do i fix this?

    @clayloft2774@clayloft27746 жыл бұрын
    • i dont know if you fixed it but go over the code, i had the same thing happen but i had spelled "sprite" "spite"

      @Jackhowe97@Jackhowe976 жыл бұрын
    • Hey, did you find a solution? I checked my code, all spelled correctly. I'm getting that flicker as well. Except for me it's between Idle and Walk

      @Oomgh@Oomgh6 жыл бұрын
    • Ah never mind. For me it was because when sprite changed, it already made an intersection.. I think the method of pushing sprite out of intersection might work better.

      @Oomgh@Oomgh6 жыл бұрын
    • I had this same problem. When I stopped running or jumping, the animation continued playing. I spelled sprite wrong. Look for typos if this is happening to you.

      @T1QTaQ@T1QTaQ6 жыл бұрын
    • I realized I used animated sprites. And needed to use a simple none-animated sprite as collision, instead of the one from the animated sprite (even if sent to simple rectangle).

      @Oomgh@Oomgh6 жыл бұрын
  • For anybody that had the same problem as me: everytime i tested if the code were ok, my player would always melt into the floor like its some sort of quicksand. what I did to fix it was to replace the + by a - on the first line below //Animation

    @Mr.LowBudget@Mr.LowBudget2 жыл бұрын
    • it still not working the palyer stands just fine but when he moves half of the player body is in the ground

      @kylecrane6281@kylecrane62812 жыл бұрын
    • @@kylecrane6281 yeah i got some problems too with the code that i couldnt fix even after trying multiple attempts for 4 hours

      @Mr.LowBudget@Mr.LowBudget2 жыл бұрын
    • @@Mr.LowBudget the running player sprite origin point should be in middle then it will work

      @microwave8351@microwave83512 жыл бұрын
    • @@kylecrane6281 someone suggested in another comment thread to make sure the origin of the running sprite (and airborn sprite) is set to "Middle Center." We changed origin on the original sprite in the first video but this wasn't brought up again here. If that doesn't work, maybe try changing collision mask to same as spr_player (or whatever you have named your player sprite)

      @thomasttt@thomasttt2 жыл бұрын
    • @@thomasttt yea it worked I was checking every Sprite again and again until I noticed the origin wasn't in the center

      @microwave8351@microwave83512 жыл бұрын
  • You explain so well family! Keep it up

    @CartoonTutorBabi@CartoonTutorBabi2 жыл бұрын
  • Thanks for these videos 👍 I've been thinking about buying GameMaker Studio to get back into game creation. I noticed the code is very, very similar to the Actionscript code I used to use when writing games in Flash years ago.

    @TonyOnTheSC@TonyOnTheSC3 жыл бұрын
KZhead