RPG Tutorial | Craft your dream Scratch Game | 1. The Player ⛹️

Поділитися
Вставка
  • Опубліковано 6 чер 2024
  • Let's code the best Tile Based RPG in Scratch (in the style of the Legend of Zelda a link to the Past, my dream Scratch Game Tutorial!). If you've followed my devlog, then you'll know what to expect. In this first easy episode I'll teach you how to code the player. We remix the starter asset project, create the basic game loop, player movement with speed normalisation for diagonals, and add player animation with walk cycles. We also get a glimpse of the amazing tile stamping engine that we will begin to build next episode - too cool! Who's with me!!!
    👀 Episodes in the series:
    Ep.1 - Craft your dream Scratch Game - • RPG Tutorial | Craft y...
    Ep.2 - Infinite Scrolling & Tiles - • 🐱 Infinite Scrolling &...
    Ep.3 - I AM SPEED - • ⚠️ LAG FREE Scrolling ...
    Ep.4 - Build a LEVEL EDITOR in Scratch - • Code a LEVEL EDITOR in...
    Ep. 5 - Split Screen & Multi Tile Assets - • EDIT FASTER ⚡ Tile Tra...
    Ep. 6 - Layers & Onion Skinning - • LAYERS 🧅 "Onion Skinni...
    🚀 Boost Your Creativity with Griffpatch
    The Griffpatch Academy will take you from "Gamer to Game Creator"
    Learn more at 👉 griffpatch.academy 👈
    😺 Scratch was developed by the Lifelong Kindergarten Group at the MIT Media Lab. See scratch.mit.edu
    🐱 Scratch Starter Projects with Assets - Remix this!
    scratch.mit.edu/projects/7255...
    🐱 Scratch Studio for Your projects
    scratch.mit.edu/studios/32038...
    👀 Related UA-cam Videos - Don't miss these!
    Devlog e01 - • Scratch RPG | Devlog #...
    Devlog e02 - • Scratch RPG | Devlog #...
    Crazy Cool Joysticks - • CRAZY COOL JOYSTICKS 🎮...
    Code a TEXT ENGINE - • Code a TEXT ENGINE | A...
    -------------Credits-------------
    💾 The BEST pixel artist: o-lobster - o-lobster.itch.io/adventure-pack
    💾 Awesome Player Character by Vryell - opengameart.org/content/tiny-...
    -------------Video Chapters-------------
    0:00 Intro
    2:01 What’s in the Asset Starter Project
    3:33 Remix and Setup
    5:03 Scrolling game - PLAYER X, PLAYER Y
    5:59 The Game Loop
    8:54 Controls (Keyboard)
    12:04 Basic Movement
    13:30 Normalising Diagonal Speeds
    17:42 Player Costumes & Direction
    20:55 Player Animation
    24:20 Idle costume
    26:07 Outro

КОМЕНТАРІ • 2,1 тис.

  • @ilcp331
    @ilcp331 Рік тому +496

    Every time I reopen this project it took 3 to 5 minutes lol

    • @griffpatch
      @griffpatch  Рік тому +286

      Tip - don't click see inside on your own project from the projects screen. Click to view project instead, then once loaded click see inside. It's so much faster.

    • @Username-mp8jl
      @Username-mp8jl Рік тому +28

      @@griffpatch THX!

    • @xoxogamewolf7585
      @xoxogamewolf7585 Рік тому +8

      Just so you now, youtube doesn’t have pinging.

    • @redpandaexe10
      @redpandaexe10 Рік тому +7

      @@griffpatch I know that can you make an tutorial of how to make fnf in scratch?

    • @ilcp331
      @ilcp331 Рік тому +6

      @@griffpatch Thx griffpatch! it's faster now

  • @Katie-is-slay
    @Katie-is-slay 2 місяці тому +39

    "HELLO FELLOW SCRATCHERS"
    -the most comforting thing to hear before coding a game

  • @realausome
    @realausome Рік тому +414

    You cant not love Griffpatch! He's a genius and he can make crazy things with such a basic coding language. I cannot understand how he does this with SCRATCH!

    • @double9videos
      @double9videos Рік тому +12

      Yes, because of this it reduces the reasons that I need to switch from Scratch to other more complex coding language because I just found more and more and more things are possible to make on Scratch!!!

    • @MrPuzzleCodes
      @MrPuzzleCodes Рік тому +20

      @@double9videos well if you want to work profesionally, switching is very much recommended. But of you just do it for fun yeah, theres fewer and fewer reasons

    • @_gherry
      @_gherry Рік тому +2

      Not including his incredibile JS ability?

    • @wojtekgame
      @wojtekgame Рік тому +2

      and his kids

    • @stereomadnnesgames
      @stereomadnnesgames Рік тому +2

      FINALY😁😁😁

  • @pyrrhuloxia53
    @pyrrhuloxia53 Рік тому +21

    Dang bro just watching this series i got so much better at scratch. I'm currently working on a custom turnbased rpg combat system, and took a leaf from your tree and used a index to keep track of which option was currently being selected by my custom selector, using two other lists to keep track of the button's x and y, and using the option index, it's working FLAWLESSLY. you've been inspiring so much of my work, and it's amazing how well it's working. just wanted to say thanks!

  • @deidrasebastian7963
    @deidrasebastian7963 8 місяців тому +13

    YOU ARE THE BEST SCRATCHER!!! HOW DID YOU KNOW HOW TO CODE IN SCRATCH SO MUCH?!?!?!?!?!

  • @falafel_83
    @falafel_83 Рік тому +31

    Finally, the most awaited moment in AAAALL of the griffpatch channel. This amazing tutorial for the RPG Tutorial Series! Amazing job griffpatch, for teaching us how to do such amazing games. Also all of us are impatient for the next amazing tutorial of the RPG, or maybe even the 4th episode for the text engine, who knows what the next tutorial will be!

  • @SupercriticalXenon
    @SupercriticalXenon Рік тому +44

    Finally!!! I'm so excited for part 2! I've been following your text engine tutorial for this. Great work!

    • @griffpatch
      @griffpatch  Рік тому +15

      Awesome, thank you!

    • @teamkingzkinda_house808
      @teamkingzkinda_house808 10 місяців тому

      @@griffpatch I'm a fan, I've been doing scratch for about four years now and I've watched all your scratch 3.0 tutorials😁

    • @somethingrandome6105
      @somethingrandome6105 6 місяців тому +1

      please help the walk animation is not working
      @@griffpatch

  • @phil-phildc483
    @phil-phildc483 3 місяці тому +1

    It's crazy to see how powerful Scratch is. I've been "coding" for a LONG time.....but my initial exposure to coding was in "Basic" and C......where you have to code EVERY SINGLE THING in any game or program....like, how to show the main window...how to add menus, etc.....Scratch takes all of that boring and difficult stuff and lets you focus on the fun parts.
    Your tutorials are AMAZING. Keep up the great work!!!!!

  • @chloecontarino8962
    @chloecontarino8962 11 місяців тому +5

    Love all the work you are doing for the Scratch community! Keep it up!

  • @DDP-Gaming
    @DDP-Gaming Рік тому +90

    Finally we start with this long awaited project! This will probably be able to match the Tile scrolling system series if not better

  • @arjunbhumula
    @arjunbhumula Рік тому +10

    Every time I open one of these tutorials, I am always amazed, finding you to show and explain the simplest way to do the most complicated thing. Thank you griffpatch, for making this awesome channel, that has helped me and many more.

  • @Sapphire_Buchan
    @Sapphire_Buchan 7 місяців тому +11

    Griffpatch tutorials really help me deeply understant coding and helps make my project perfect

  • @pensantetuamaic9919
    @pensantetuamaic9919 11 місяців тому +1

    it took 3 days of making the costumes + half of a day scripting but im proud of my project.
    thx for this tutorial! it helped me alot.
    hope you reach 1 million subs!

  • @averageneutralguy
    @averageneutralguy Рік тому +7

    This is crazy! Another series is starting! Im really excited for the next parts of the video because this had gotten awesome! Great job griffpatch!

  • @ffjfam3185
    @ffjfam3185 Рік тому +11

    For someone who just released their platform game using his tutorial, I’m not surprised by how good this it.

  • @PSVCHXPVTHXC
    @PSVCHXPVTHXC Рік тому +2

    This will prob never get seen but I was I'm 4th grade looking at tutorials like these and now I'm coding unity in 10th. These memories just fly by

  • @OculusPro.
    @OculusPro. Рік тому +1

    You just saved my scratch career. Before I didn’t understand anything and only knew hoe to make a pong game, but with these simple tutorials that easy to understand I think I might be able to make better games!👍

  • @milankarow6567
    @milankarow6567 Рік тому +3

    This is so awesome. This time I swear I'll be following and rebuilding each episode. Part 1 is done, can't wait for part 2!

  • @FliPOffwg
    @FliPOffwg Рік тому +7

    As always, Griffpatch never ceases to amaze me with the crazy projects you can create with Scratch... Thank you :D

  • @benjaminhunt7276
    @benjaminhunt7276 Рік тому

    this tutorial series is AMAZING! and this is JUST THE START! amazing!

  • @Blue_Animations-bk6gs
    @Blue_Animations-bk6gs 5 днів тому

    This man is such a help, he set the indestructible framework for my summer project

  • @CrazyIggy
    @CrazyIggy Рік тому +16

    This series is gonna be incredible

    • @Benjiplays10-xr6lt
      @Benjiplays10-xr6lt 11 місяців тому

      I’m from the future and, yeah it’s incredible

  • @Grimm_Sleeper
    @Grimm_Sleeper Рік тому +6

    Can't wait for episode 2, this is looking sooooo fun so far

  • @sifugraham2918
    @sifugraham2918 Рік тому +2

    That was awesome, thank you. Looking forward to working through the whole series. Great stuff.

  • @NekUnity
    @NekUnity Рік тому +1

    I work now on Final Fantasy Game on scratch and thank you very much ! Your videos help me for the map, the heath bar and the joy stick movement !

  • @Resseguie
    @Resseguie Рік тому +17

    I love the simplicity of the player frame and base+frame costume selection. When I tried something similar in the past, I was trying to concatenate the costume name with a frame number. It worked but it got a bit hairy.

    • @MrPuzzleCodes
      @MrPuzzleCodes Рік тому +1

      @@leol3545 no, the members of the channel can see this early

  • @aoifecreavin
    @aoifecreavin Рік тому +5

    Hi Griffpatch I always play your games on scratch. I love Zelda and this is so much inspiration. You deserve all 192k subscribers you derserve 100000000million! 😀

  • @user-em3oy2jp1r
    @user-em3oy2jp1r 11 місяців тому

    Hi Griff, teacher here! I used Scratch a few years ago to do some pretty basic stuff. I just got through the first episode of this tutorial with no issues, it was so easy to follow! Thank you so much for putting this together! You might get to it in later episodes, but the only thing I would suggest is at the very end of this episode, I added a "Set PLAYER DIR to 180" to the "When Flag Clicked" block, that way it also sets my idle animation to look a bit more natural when the game starts.

  • @mr_oasis1873
    @mr_oasis1873 11 місяців тому +1

    this is so good he pops out the most complicated tutorials out there on scratch and teaches it with ease

    • @ashlaree86
      @ashlaree86 9 днів тому

      so true🏆giving him a golden trophy for being one of the smartest non-robot scratch coders out there!!!

  • @julidubey-ic2mk
    @julidubey-ic2mk Рік тому +11

    I am making my first RPG on scratch so this was very helpful

    • @griffpatch
      @griffpatch  Рік тому +4

      Good luck!

    • @Celery_Fan8
      @Celery_Fan8 8 місяців тому +1

      @@griffpatch I can’t change the costume of the player sprite, i copied all of the code but it isn’t working. What do I do?

  • @scratchy523
    @scratchy523 Рік тому +5

    Ok I think this will be _THE_ most epic tutorial griffpatch has ever made.

  • @Pipe1637
    @Pipe1637 Рік тому

    Oh this is so GREAT! I'm excited to finish my project with this tutorial, I'll give you all the credits

  • @blackhole37
    @blackhole37 Рік тому +22

    at this rate you're going to make Scratch as popular as Python or C++ or others programming languages. Sometimes, I preffer code in Scratch than in python. Thanks for this education !

    • @Zeks2high
      @Zeks2high Рік тому

      Same

    • @circuitcoder
      @circuitcoder Рік тому

      Lol I also do sometimes, but the best thing is connecting both and making databases haha

    • @blackhole37
      @blackhole37 Рік тому

      of course it's the best.

  • @BlueEngland
    @BlueEngland Рік тому +91

    griffpatch is single-handedly carrying the entire scratch community with these tutorials

  • @real_abhinav__shorts
    @real_abhinav__shorts Рік тому +2

    cant wait for tutorial 2 of this MIGHTY RPG game.😉😉😉

  • @ihavenoproblems2116
    @ihavenoproblems2116 11 місяців тому

    man, i seriously love how your videos "upgraded". Example, when you made the tile scrolling platformer all the variables was already setted when we joined the project (almost all of them) and i love creating variables

  • @sophiawang9483
    @sophiawang9483 Рік тому +3

    YAY!!!!!!! WE NOW GET TUTORIALS!!!!! Can’t wait for part 2!!!!!

  • @debracheung
    @debracheung Рік тому +3

    My 7yo boy loves all of your tutorial, Griffpatch! He learned so much from you. Thank you! (And he is having a low-grade fever and still asking when the #2 RPG tutorial will be released.... so eager).

    • @griffpatch
      @griffpatch  Рік тому +2

      Hey there - I am so pleased to hear that he's having such fun :D - I'm right there with him hehe! I'm sure he will continue to thrive! Say hi from me, my fellow Scratcher!

  • @ScratchShorts391
    @ScratchShorts391 3 місяці тому

    Amazing thanks! I will be watching your next episode!

  • @ChessGaming650
    @ChessGaming650 Рік тому

    griffpatch you just explain it in a very simple way that everyone can understand I really like that!

  • @ilipog
    @ilipog Рік тому +3

    killed it as always griffpatch i was actually expecting you to make a action variable to keep track if the player is idle but this works too great work

    • @griffpatch
      @griffpatch  Рік тому +3

      We may well add action or status variables later on. For now, this does the trick :)

    • @Chrome_Sipher
      @Chrome_Sipher Місяць тому

      @@griffpatch Why does my player sprite move infinite after i press W and S?

  • @griffinbrooks6748
    @griffinbrooks6748 Рік тому +71

    “An incredible adventure awaits!”
    Coding with griffpatch!

  • @UserHadError
    @UserHadError 9 місяців тому

    This is a big help because I’m trying to make a rpg for myself so I’m learning the basic scratch and after this I will try to make my own with different types of pixel sprites

  • @whoistoft
    @whoistoft Рік тому +5

    It's crazy how lively Griffpatch has become over the years! Great video!

    • @ikilledaman
      @ikilledaman Рік тому +1

      He’s just over there furiously chugging coke and taking shots of caffeine so he can make a lively intro

  • @maryannemacwan7343
    @maryannemacwan7343 Рік тому +4

    When is ep 2?? I'm waiting 😁 and i know it will be a BLAST 💥💥 keep up the good work!

    • @griffpatch
      @griffpatch  Рік тому +2

      Not long now!

    • @ngotra1904
      @ngotra1904 8 місяців тому

      @@griffpatch I like your message

  • @Lemonely01
    @Lemonely01 Місяць тому

    I am sooooo excited to learn about this!!! :)

  • @carolinacottageschool1869
    @carolinacottageschool1869 Рік тому

    Thank you for explaining how to animate the player! This will be helpful for future scratch projects!

  • @UWD8
    @UWD8 Рік тому +3

    this is why we all love griffpatch, he makes projects to beginners look so complicated but makes it look like a piece of cake.

  • @idkwhoami8394
    @idkwhoami8394 Рік тому

    IVE BEEN WAITING THIS FOR LIKE 99999999999 YEARS LES GOOOOO GRIFFPATCH! thx

  • @TheRealAmalo
    @TheRealAmalo 10 місяців тому

    Thank you so much for this video Griffpatch!😄My scratch project works perfectly so far!😊

  • @ammarturkistani6685
    @ammarturkistani6685 8 місяців тому +74

    I think I’m learning math from you not scratch

    • @booboo-wm8sr
      @booboo-wm8sr 5 місяців тому

      Scratch is a math class

    • @Bankole-wr4yo
      @Bankole-wr4yo 5 місяців тому

      Scratches math is just crazy

    • @booboo-wm8sr
      @booboo-wm8sr 5 місяців тому

      @@Bankole-wr4yo like math lessons in universities

    • @certifiedbfdifan
      @certifiedbfdifan 4 місяці тому

      🎉multitasking🎉 (i cant find that one stars emoji)

    • @booboo-wm8sr
      @booboo-wm8sr 4 місяці тому

      @@certifiedbfdifan or give up

  • @AndyWandyBandy
    @AndyWandyBandy Рік тому +3

    8:30 is there a reason that instead of using the "Go to x:() y:()" block, you use individual go to blocks for this? As far as I know, there isn't a difference, but I'm just curious!

    • @TONYXXXIFICATION
      @TONYXXXIFICATION 6 місяців тому

      Oh yeah I see what you mean. Great question, I'm curious aswell!
      You would think that changing (x) and (y) together in the same block would make for smoother diagonal movement, and that contrarily changing (x) first and (y) later, would risk creating a "staircase" diagonal movement. Does it really not matter at all?
      Maybe it's so fast that it all happens before the screen gets refreshed?

  • @cubic7844
    @cubic7844 Рік тому

    Great tutorial can't wait for part 2!!

  • @TropialGamingYT
    @TropialGamingYT Рік тому +1

    You can tell this video is incredible because of his energetic voice in the beginning

  • @Tr0lliPop
    @Tr0lliPop 11 місяців тому +3

    11:00 This can be achieved with one block!
    All you need to do is put the right arrow and d key detection in the "0" part of the subtraction, and put the subtraction in the "set joy x" block. Then you can get rid of the "Change joy x" block!

    • @brokenegg8967
      @brokenegg8967 10 місяців тому

      he knows that he just wanted to do things differently😉

    • @Tr0lliPop
      @Tr0lliPop 10 місяців тому

      @@brokenegg8967 I know that he knows, I just want others to know too.

    • @brokenegg8967
      @brokenegg8967 10 місяців тому +1

      okay
      (btw you said know 3 times)

  • @Bloomddd
    @Bloomddd 9 місяців тому

    I've been trying to get 8-directional movement working for so long, this is super helpful!

  • @monkegt538
    @monkegt538 Рік тому +1

    this guy always helps us create AMAZING projects, It may not work sometimes but you could do it again if it doesn't work!

  • @pixelguy2231
    @pixelguy2231 Рік тому +10

    I still wonder what the Sqaure Root Function does, I still didn't get it's function

    • @griffpatch
      @griffpatch  Рік тому +9

      4 * 4 = 16
      sqrt( 16 ) = 4
      It's the opposite of the square (which is where you multiply a number by itself)

    • @pixelguy2231
      @pixelguy2231 Рік тому +8

      @@griffpatch Wow, thanks! I also never found a use to this function, but I guess I'll give it a try soon
      EDIT: Oh I remember the function now, it's √ simbol, I never knew it's actual name in English, lol

    • @pog917
      @pog917 Рік тому

      @@pixelguy2231 square root?

    • @DeletedUserOfficial
      @DeletedUserOfficial Рік тому +1

      Square rooting duh dummy 😂
      You will start to learn in 7-8th grade 😅

    • @Speed-TV
      @Speed-TV Рік тому +2

      Square root is like the opposite of squaring a number (Instead of multiplying you divide)

  • @ScottStratton-yw7jm
    @ScottStratton-yw7jm Рік тому +1

    So happy with the results!! Thanks griffpatch for this awesome tutorial!!!11!1!!1!!11!11

  • @thetechpanda6151
    @thetechpanda6151 Рік тому

    I cant wait to share this project! thank you so much its really fun to make!

  • @abhiniti
    @abhiniti 4 дні тому

    You actually saved my game from spoiling into a errored game. Thank you soooo much @griffpatch!!!

  • @LawrencesChannel
    @LawrencesChannel Рік тому

    I already love this series

  • @emmanuelsaran
    @emmanuelsaran 3 місяці тому

    Griffpatch my projects use to be bland and now you help me make the better! Thanks griffpatch

  • @dhyan_a
    @dhyan_a Рік тому

    I am watching your vids after so many months and now I feel like I am back to school after a summer vacations. 🙂 Happy to see my teacher again.

  • @Metromex_386
    @Metromex_386 Рік тому

    The music in the intro while saying the dev log part is awesome

  • @zubairsadeque1050
    @zubairsadeque1050 Рік тому

    This is the best as always :D

  • @an_enigmaticdream
    @an_enigmaticdream Рік тому +1

    I remember seeing your tutorials in scratch years ago! Never knew you were in UA-cam!

  • @Idand34
    @Idand34 Рік тому

    I love it!!!
    Thanks for sharing 😊

  • @pahalvaidya1094
    @pahalvaidya1094 Рік тому

    I can't wait to try this. Waiting for my exams to get over. Love you Griffpatch😀

  • @samuelroderickchendra3971
    @samuelroderickchendra3971 Рік тому

    You tutorials are awesome! Thank you Griffpatch! You're a genius!

  • @Gab_lose
    @Gab_lose Рік тому

    Bro, this is beautiful really.

  • @himyusernameisveryverylonghehe

    this guy is the stampylongnose of scratch

  • @TheRealKensterBoosteryt
    @TheRealKensterBoosteryt Рік тому

    Helpfully here thanks so much man!

  • @rshi12345
    @rshi12345 Рік тому +1

    Your tutorials are so cool thank you :)

  • @frcedperspective6761
    @frcedperspective6761 Рік тому

    Brilliant tutorial! Love your videos

  • @muhammadnaafay5847
    @muhammadnaafay5847 Рік тому

    amazing cant wait for part 3 !!!!

  • @Pabloamandi
    @Pabloamandi Рік тому

    Can't wait for episode 2!

  • @Nopeynone
    @Nopeynone Рік тому

    I love your videos and keep up the good work. I really learn a lot from these videos

  • @DevourTRUE...
    @DevourTRUE... Рік тому

    I've only seen the intro and I know this is gonna be wicked!!!!

  • @phindiwesigadla3630
    @phindiwesigadla3630 Рік тому

    You blowed my mind that was cool

  • @danholland4521
    @danholland4521 10 місяців тому

    Thanks for the tutorials, Griffpatch!

  • @Sebest401
    @Sebest401 10 місяців тому +1

    THANK YOU GRIFFPATCH! Some of the scripts look impossible to understand, but with your help I understand them all! And I see that some of these scripts I used in my old games. 😸

  • @StrxwberryMinjii
    @StrxwberryMinjii 2 місяці тому

    TYSM!! Awesome Turtorial!

  • @chanceycat7094
    @chanceycat7094 Рік тому

    Perfect for my new Multiplayer RPG game!

  • @ramiostudios111
    @ramiostudios111 Рік тому

    I have never seen a better coder than you griffoatch! Keep on with the videos and coding!

  • @xivientyedits
    @xivientyedits Рік тому

    so exited to start great work griffpatch😃😀

  • @DevXP
    @DevXP Рік тому

    I love this tutorial, keep it going! :D

  • @reinellafoueppe6383
    @reinellafoueppe6383 Рік тому

    These tutorials ARE SOOOOOOOOOO help tysm for these tutors

  • @evanlapoint8807
    @evanlapoint8807 9 місяців тому

    an amazing tutorial! this will really help me make my idea i have for an alian type of rpg really come to life! keep up the good work!

    • @griffpatch
      @griffpatch  9 місяців тому

      Glad to hear it! Good luck with your project

  • @Wokovsky
    @Wokovsky Рік тому

    Thank you! You helped me so much with my projects.

  • @dylantonner647
    @dylantonner647 Рік тому +1

    Youn are so clever! Keep up the great work

  • @lifetime9584
    @lifetime9584 Рік тому

    Always the best!

  • @chilly42069
    @chilly42069 Рік тому +1

    Thank you griffpatch ur the best!!

  • @pugboyrascal
    @pugboyrascal 10 місяців тому

    The amount of tiles needed for that is crazy! 🤯

  • @GamingGamer19
    @GamingGamer19 Рік тому

    whats crazy is that I always play your games. I find it fun to play

  • @inotjames9951
    @inotjames9951 Рік тому

    watcNice tutorialng one or two every night, SUPER helpful, cNice tutorialll and clear. Great content, can't wait to watch them all.

  • @rogueftw.
    @rogueftw. 7 місяців тому +1

    Bro thank you so much i needed the videos for my school project

  • @thesandygamer3651
    @thesandygamer3651 Рік тому

    im new to scratch and your tutorials really help.

  • @RTJ1312
    @RTJ1312 Рік тому

    THIS SERIES IS AMAZIN

  • @Slep24
    @Slep24 Рік тому +1

    checking in every day, waiting for part 2