Code a Platformer Game | 2. Next Level

How to Code a Platformer Game in Scratch Code Blocks with griffpatch. Part 2 of this tutorial covers moving back and forward between level scenes, or to the next level. Also we switch to using Sprite Sensing instead of Color Sensing for much more colorful levels! Lastly we fix the common bug of getting stuck in the ground when changing level - super! My tutorials are for all budding game & software developers, so Scratch On!
🚀 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
👀 Next Episode #3 - • Code a Platformer Game...
🐱 Starter Project Game Assets - scratch.mit.edu/projects/5605...
🐱 Scratch Studio (post project here) - scratch.mit.edu/studios/30257...
👀 First Episode - • Code a Platformer Game...
👀 Playlist for this series - • Code a Platformer Game
❤️ Scratch Addons - scratchaddons.com/
📹 Video Editing Software - techsmith.z6rjha.net/5bajbo
-------------Video Chapters-------------
0:00 Intro
0:58 The Problem with Multicoloured Levels
3:02 Change from Backdrop to a Level Sprite
5:27 Consolidate Touching Scripts
7:28 Organise our code
11:50 Change of Scene - A Multi-screen level
15:40 Moving off the Edge of the Screen
18:57 Getting Stuck in the Level
20:40 Preventing collision bugs
25:22 Getting Un-Stuck
28:50 Bad Level Design
30:01 Outro

Пікірлер: 3 000

  • @griffpatch
    @griffpatch7 ай бұрын

    Next Episode #3 - kzread.info/dash/bejne/i2qe0Nmkp6_OpNI.html Starter Project Game Assets - scratch.mit.edu/projects/560596896/ Scratch Studio (post project here) - scratch.mit.edu/studios/30180226/kzread.infogaming/emoji/7ff574f2/emoji_u1f431.png

  • @carpamart1896

    @carpamart1896

    6 ай бұрын

    When I put the reset and begin level and pressed green flag it broke 😢 PLEASE RESPOND

  • @marvellousimudia3309

    @marvellousimudia3309

    5 ай бұрын

    i dont't understand what you just said but i hope griff helps you@@carpamart1896

  • @OleSandberg

    @OleSandberg

    4 ай бұрын

    i don`t now how to help sorry :(

  • @kristar.5555

    @kristar.5555

    Ай бұрын

    I play penguinmod!

  • @Damianmunoz2013

    @Damianmunoz2013

    Ай бұрын

    Ok so when I organize the coding and press start my character won’t move or jump

  • @semajnz6549
    @semajnz65492 жыл бұрын

    Me: looks away for 1 second. Griffpatch: Made the rest of the game.

  • @Salithin

    @Salithin

    2 жыл бұрын

    @GoldenLightFB I hate when that happens

  • @kathrynsullivan8024

    @kathrynsullivan8024

    2 жыл бұрын

    So true

  • @Bibhu109

    @Bibhu109

    2 жыл бұрын

    @GoldenLightFB Oops I accidentally recreated the entire earth and solar system! What a disaster.

  • @shreenakodaemploymentagenc4134

    @shreenakodaemploymentagenc4134

    2 жыл бұрын

    Oops I accidentally recreated the entire universe! What a disaster.

  • @Salithin

    @Salithin

    2 жыл бұрын

    @@shreenakodaemploymentagenc4134 * smacks head* Not again!

  • @griffpatch
    @griffpatch2 жыл бұрын

    One thing to note if you are having problems The Level sprite must have a 'clear' transparent background, no filled background behind the player. If you want a background behind the player, this must remain in the stage backdrop. ALSO - If the player is not moving off screen, try reducing the "IF x position > 235" to something just a little less until it works (Try > 230)

  • @kumarikanchan5978

    @kumarikanchan5978

    2 жыл бұрын

    Thanks for the information

  • @tejaldesai6249

    @tejaldesai6249

    2 жыл бұрын

    Thanks for info sir

  • @cubamckenzie8081

    @cubamckenzie8081

    2 жыл бұрын

    How get cat

  • @griffpatch

    @griffpatch

    2 жыл бұрын

    @@cubamckenzie8081 That's a perk of becoming of joining the channel membership

  • @spawnnumber2126

    @spawnnumber2126

    2 жыл бұрын

    What about vertical scences?

  • @timandjoshbricks6715
    @timandjoshbricks6715 Жыл бұрын

    Hi Griffpatch, Thank you so much for these amazing tutorials!! My son(8) and I (30s) are having a great time learning and making this!

  • @henryonokpasa3266

    @henryonokpasa3266

    Жыл бұрын

    you're thirty?

  • @thefakesammymammy

    @thefakesammymammy

    Жыл бұрын

    I hope you and your sons game turns out awesome!!

  • @TexterBox

    @TexterBox

    10 ай бұрын

    good luck with you and your sons game! :D

  • @KubaPuppy

    @KubaPuppy

    7 ай бұрын

    I agree, these are awsome tutorials!!!!

  • @A34realvr

    @A34realvr

    7 ай бұрын

    @@henryonokpasa3266 yeah he is is there a problem?

  • @stevethepuppet5539
    @stevethepuppet55392 жыл бұрын

    OGs will remember the old scrolling platform tutorial

  • @fakerolnando

    @fakerolnando

    2 жыл бұрын

    miss that

  • @trunghieutran4202

    @trunghieutran4202

    2 жыл бұрын

    Hey it’s says 2 days but this is made today

  • @the_ukulele_chap3221

    @the_ukulele_chap3221

    2 жыл бұрын

    Hes a member

  • @dubsisthegoat48

    @dubsisthegoat48

    2 жыл бұрын

    yes

  • @lemonboom589

    @lemonboom589

    2 жыл бұрын

    I was rewatching the og platformer tutorial when suddenly griffpatch started posting the tile scrolling tutorial series and it really made me happy

  • @lasercatto
    @lasercatto2 жыл бұрын

    20:00 "Ohhho no! Disaster!" Made my day :D

  • @ricardosantos2599

    @ricardosantos2599

    2 жыл бұрын

    20:01

  • @da_monke_guy
    @da_monke_guy6 ай бұрын

    This channel is amazing! You explain it in a simple way and are enthusiastic about it. great job :)

  • @user-cb4lf3qu6e

    @user-cb4lf3qu6e

    3 ай бұрын

    so true :D

  • @adjianggriono6894
    @adjianggriono6894 Жыл бұрын

    this is the only tutorial i've watched so far and i've only watched episode 1 and 2 and it's going great😁

  • @redwoodsteve8651
    @redwoodsteve86512 жыл бұрын

    I ♥ scratch! It's the best coding thing out there for beginners and I am so glad you are making tutorials for us (the viewers). I have been on scratch for over a year, and I have never heard of the techniques you use. Thank you!

  • @TamzidDd
    @TamzidDd2 жыл бұрын

    What better way to celebrate my birthday is to lie down and watch some more awesome griffpatch vids

  • @Navy-729

    @Navy-729

    2 жыл бұрын

    Happy birthday!

  • @lethalsword628

    @lethalsword628

    2 жыл бұрын

    Happy Birthday!

  • @GregoryGaming942

    @GregoryGaming942

    2 жыл бұрын

    Happy birthday!

  • @kavitharamdas2580

    @kavitharamdas2580

    2 жыл бұрын

    Happy Birthday

  • @sstarb3rrieswirls

    @sstarb3rrieswirls

    2 жыл бұрын

    Happy birthday I hope r a m e n dosen't come and say ThEy CoUlD bE LyIng

  • @user-mr3fq2gc6b
    @user-mr3fq2gc6b6 ай бұрын

    Im so happy that this channel exists! You are a real Scratch GENIUS

  • @shark90644

    @shark90644

    5 ай бұрын

    So true

  • @Dos72
    @Dos7210 ай бұрын

    Today my friend told me he likes cheese

  • @SeanHEDHOG360

    @SeanHEDHOG360

    2 ай бұрын

    Cool, I also like Cheese

  • @pupnub

    @pupnub

    Ай бұрын

    @@SeanHEDHOG360why?

  • @SeanHEDHOG360

    @SeanHEDHOG360

    Ай бұрын

    @@pupnub You know pupnub? I don’t necessarily know why

  • @pupnub

    @pupnub

    Ай бұрын

    @@SeanHEDHOG360 I would like to apologize on causing this existential crisis you are now having. I foolishly believed that why someone may like cheese is a cookie cutter answer, but I see that that presumption was incorrect. Alas, though there is no way to repair the damage I have caused, I would like to provide a possible out of this mental prison, perhaps you could say, “I like cheese because 🧀” This provides a good explanation to an otherwise impossible to answer question. If this does work I am thankful, but still deeply sorry for inflicting this stress upon your soul. But if not I am truly sorry for what I have caused, and I hope that somehow you will find your answer.

  • @seancullin9440

    @seancullin9440

    Ай бұрын

    🪤

  • @toothpaint9368
    @toothpaint93682 жыл бұрын

    Me: can’t even make a button Griffpatch: Come. This is no place to die

  • @Salithin

    @Salithin

    2 жыл бұрын

    Griffpatch: here I have a recreation of a bestselling game on scratch Me: how the heck do I make gravity

  • @highpheonixstudios1621

    @highpheonixstudios1621

    2 жыл бұрын

    @@Salithin lol

  • @aryansonawane10

    @aryansonawane10

    2 жыл бұрын

    @man lol

  • @veto_real

    @veto_real

    2 жыл бұрын

    @@aryansonawane10 just click on the reply and boom you get the blue man link

  • @itsamelink8355

    @itsamelink8355

    2 жыл бұрын

    to make a button make a sprite and but a when sprite clicked in the sprite, and code whatever you want to happen underneath the hat block.

  • @idk_but-random
    @idk_but-random2 жыл бұрын

    30:05 you can make an if statement to detect if the scene variable is more then our max scene or less then our min scene

  • @Jar.Headed

    @Jar.Headed

    2 жыл бұрын

    *Godzilla had a stroke while reading this and died*

  • @pawitma7929

    @pawitma7929

    2 жыл бұрын

    @@Jar.Headed its not that hard

  • @TM-wn6fj

    @TM-wn6fj

    2 жыл бұрын

    *an *an *an *an *an *an *an *an *an *an *an *an*an *an *an *an *an *an*an *an *an *an *an *an*an *an *an *an *an *an*an *an *an *an *an *an*an *an *an *an *an *an*an *an *an *an *an *an*an *an *an *an *an *an*an *an *an *an *an *an*an *an *an *an *an *an*an *an *an *an *an *an*an *an *an *an *an *an*an *an *an *an *an *an*an *an *an *an *an *an*an *an *an *an *an *an*an *an *an *an *an *an*an *an *an *an *an *an*an *an *an *an *an *an*an *an *an *an *an *an*an *an *an *an *an *an*an *an *an *an *an *an*an *an *an *an *an *an

  • @danilopantelic2957

    @danilopantelic2957

    2 жыл бұрын

    BUT is you use just"if SCENE# ect.,,then you have a bit of "then do nothing,,...

  • @prohakerofficial
    @prohakerofficial Жыл бұрын

    Normally I sleep on these videos, but your voice is so entertaining that I watch you often! :D

  • @TheJimmyCartel
    @TheJimmyCartel Жыл бұрын

    You have made me soooo happy with this series, 10/10 content

  • @ItsTheAlex

    @ItsTheAlex

    Жыл бұрын

    Hey I’m not sure what I’ve done wrong but as soon as I drop in the turn 180 degrees my sprite flips and I don’t know what to do, it’s in the define collisions direction script

  • @TETNTM
    @TETNTM2 жыл бұрын

    out of all you're serieses, this motivates me to do scratch the most

  • @VBrick13
    @VBrick132 жыл бұрын

    I love these tutorials! I love how you showed your tip on how to flip it; without making it go on side and not on the edge! Best tip!

  • @griffpatch

    @griffpatch

    2 жыл бұрын

    Glad it was helpful! - I like to include these things when I can :D

  • @VBrick13

    @VBrick13

    2 жыл бұрын

    @@griffpatch Thanks! :D

  • @sideofsalt9262

    @sideofsalt9262

    2 жыл бұрын

    What was the tip :(

  • @Rain2For1

    @Rain2For1

    2 жыл бұрын

    @@sideofsalt9262 just wait in this vid

  • @card4851

    @card4851

    2 жыл бұрын

    @@griffpatch When I go on the edge I glitch out :(

  • @gamergirlxdgames
    @gamergirlxdgames3 ай бұрын

    The way i did it was using the touching color blocks is easy because my blocks had a black outline so i could make it all kinds of different colors, plus the outline makes it POP out.

  • @kkeen3753

    @kkeen3753

    9 күн бұрын

    mine have outlines but I don't use touching color blocks

  • @carolinacottageschool1869
    @carolinacottageschool18692 жыл бұрын

    This was so helpful! Keep up the good work!

  • @Izzushaanuyuhaa
    @Izzushaanuyuhaa2 жыл бұрын

    I am a new scratcher. Just started following you, and I don't regret it. You explain things in a way that's easy to understand This is my 1st series following to you. And BELIVE Me it's awsome

  • @Ash_dragons9

    @Ash_dragons9

    2 жыл бұрын

    I am a new scratcher too, it is hard. I am bad at scratch.😓

  • @koji4884

    @koji4884

    Жыл бұрын

    @@Ash_dragons9 I hope you get good at scratch

  • @arahamath

    @arahamath

    Жыл бұрын

    I have 7 month experience

  • @jennygardner1171

    @jennygardner1171

    Жыл бұрын

    @@Ash_dragons9 you are not bad at scratch you are just new and awesome

  • @Ash_dragons9

    @Ash_dragons9

    Жыл бұрын

    @@jennygardner1171 thanks I now do Javascript and Python!!!!!

  • @waleedalshammari8920
    @waleedalshammari89202 жыл бұрын

    I missed your high-quality tutorials. These feel like they could air on TV with how professional they are! Good work!

  • @kappis06

    @kappis06

    2 жыл бұрын

    He had us in the first half, not gonna lie.

  • @waleedalshammari8920

    @waleedalshammari8920

    2 жыл бұрын

    @@kappis06 didn’t realize I phrased it so badly sorry about that

  • @WinterNox

    @WinterNox

    2 жыл бұрын

    Lol I thought you meant his videos are bad nowadays by reading the first line ':P

  • @thelegoreaper

    @thelegoreaper

    2 жыл бұрын

    @@WinterNox me too

  • @nhuankykieu1247

    @nhuankykieu1247

    2 жыл бұрын

    @@WinterNox me too

  • @jdh9419
    @jdh9419 Жыл бұрын

    3:38 I have a simple solution to add the advantages of touching color to touching sprite: Don’t make the level all one sprite! Have each different interaction in the level be it’s own sprite, then position the sprites in the correct alignment

  • @jdh9419

    @jdh9419

    Жыл бұрын

    If you find any problems with this suggestion, feel free to inform me!

  • @LegendCV17

    @LegendCV17

    Жыл бұрын

    i dont have a question about that but when i did the touching sprite thing his way my character stopped touchingthe platforms do you know why

  • @ShehzaibIsALegend
    @ShehzaibIsALegend10 ай бұрын

    13:13 Fun fact: Instead of having to select everything using Ctrl + A (Cmd + A for Mac) then flipping it horizontally/vertically, if you flip a costume/backdrop horizontally/vertically without selecting ANYTHING at all, it flips the whole costume/backdrop horizontally/vertically! Same when you delete stuff from the costume/backdrop without selecting anything (it deletes everything in the costume/backdrop but not the costume/backdrop itself)!

  • @siyahseeker
    @siyahseeker2 жыл бұрын

    This is like Super Mario Bros. Special, an obscure Mario game that does screen by screen levels since scrolling is much difficult. And it also places things like items in a spot that won't jiggle when you try to make it scroll.

  • @seth9243
    @seth92432 жыл бұрын

    i am so grateful someone this good at scratch was able to teach us newbies, i am indebted to you my friend

  • @shonkerz

    @shonkerz

    Жыл бұрын

    nope

  • @iamagiantfangd5580

    @iamagiantfangd5580

    Жыл бұрын

    @@shonkerz What?

  • @adamphayes
    @adamphayes Жыл бұрын

    This is an amazing tutorial! For your next tutorial (after RPG) maybe you could do a Tower Defense tutorial? That would be awesome!

  • @aaronsantiagosanchezvillamizar

    @aaronsantiagosanchezvillamizar

    Жыл бұрын

    fluevin creates one and is very good

  • @alancohen5391

    @alancohen5391

    11 ай бұрын

    He did!🎉

  • @tiheshabissainthe5871

    @tiheshabissainthe5871

    10 ай бұрын

    ​@@alancohen5391wait he did

  • @thefakesammymammy
    @thefakesammymammy Жыл бұрын

    I know this video is a year old but seriously, your tutorials are awesome and REALLY helpful (psst sometimes I just watch the tutorials even though I’m not following them because they’re just so good)

  • @kevinpari9500

    @kevinpari9500

    Жыл бұрын

    same XD

  • @tsujin_games

    @tsujin_games

    Жыл бұрын

    same i agree

  • @geraldneutral5491

    @geraldneutral5491

    Жыл бұрын

    me too

  • @SomewhatDevious

    @SomewhatDevious

    Жыл бұрын

    same

  • @zZeimos

    @zZeimos

    Жыл бұрын

    Lol #Icanrelate

  • @ataharkhan7939
    @ataharkhan79392 жыл бұрын

    Hello, Griffpatch I just wanted to thank you for the tutorial it helped me a lot the only thing that I am thinking is that like the way you teach nobody else can copy that that was some amazing teaching, thanks again

  • @griffpatch

    @griffpatch

    2 жыл бұрын

    Glad it helped!

  • @lelalela4857

    @lelalela4857

    2 жыл бұрын

    Griffpatch i ❤ ur content

  • @techsavvykid8462
    @techsavvykid84622 жыл бұрын

    I like your videos your scratch tutorials will always work, other scratch youtube channels game don't work they complicate it. Thank you

  • @UpsurgePlays996

    @UpsurgePlays996

    2 жыл бұрын

    you do get this one is breaking right i am literally puting the exact same thing thing and it wont let me switch levels

  • @crapguy-gd

    @crapguy-gd

    2 жыл бұрын

    yes they are good !!!¦3

  • @Red_impostorYT

    @Red_impostorYT

    2 жыл бұрын

    @@UpsurgePlays996 it works for me

  • @OverlZer0

    @OverlZer0

    Жыл бұрын

    Yes

  • @cezarduszynski
    @cezarduszynski Жыл бұрын

    Also, i just wanted to add that the 'sprite' collisions also reduce lag Thanks For this awesome tutorial. :)

  • @chessepanther
    @chessepanther Жыл бұрын

    Wow the result's are soo good! i just can't stop doing new levels Thanks!!!

  • @puntballer1858
    @puntballer18582 жыл бұрын

    Your always making more amazing content! Keep up the good work!

  • @FLAME21958

    @FLAME21958

    Жыл бұрын

    nice

  • @zaidishere2526
    @zaidishere25262 жыл бұрын

    he doesn't just teach a how to make a game but also gives us tips to use in our own game thx griffpatch

  • @Darius-1234
    @Darius-1234 Жыл бұрын

    your videos are so good griffpatch it helps me a lot in scratch

  • @random-username_
    @random-username_ Жыл бұрын

    Small note - You can use "set touching to (touching level * 1)" rather than using an if statement.

  • @mail4bill
    @mail4bill2 жыл бұрын

    Hi! Late to the party, 1723 comments down, but I must say. I have rarely seen anyone exercise expertise, patience and a pure desire to teach others, combines with genius. You sir are a ROCK STAR. ALL HAIL GRIFFPATCH!

  • @griffpatch

    @griffpatch

    2 жыл бұрын

    Too kind :D - Thanks!

  • @rylandmoyle9628

    @rylandmoyle9628

    Жыл бұрын

    ALL HAIL GRIFFPATCH!

  • @Rez_baa

    @Rez_baa

    Жыл бұрын

    @@rylandmoyle9628👍🙌🙌🙌🙌

  • @Rez_baa

    @Rez_baa

    Жыл бұрын

    @@rylandmoyle9628👍🙌🙌🙌🙌

  • @shoppersville7328

    @shoppersville7328

    Жыл бұрын

    @@rylandmoyle9628 ALL HAIL GRIFPATCH

  • @colekhor8293
    @colekhor82932 жыл бұрын

    Hi GriffPatch your tutorial is amazing it helped a lot thanks

  • @FLAME21958

    @FLAME21958

    Жыл бұрын

    nice😄

  • @davsjaidrai8476
    @davsjaidrai84762 жыл бұрын

    lol, i love that you say ageein, best tutorial series on yt

  • @Thanatos385
    @Thanatos38529 күн бұрын

    when i ran this i was colliding and thinking, "i did all the steps but its still happening"..and then boom at 27 min you fixed that issue too. Super excited about this tutorial. Thank you so much!

  • @100_Random
    @100_Random Жыл бұрын

    I’m having trouble with getting this to work 27:39 I’ve checked and my coding seems to be the same as yours but I can’t get it to work

  • @rohansachdeva4952
    @rohansachdeva49522 жыл бұрын

    An Appel a day keeps the doctor away 18:55

  • @user-yb8kg3ct5s
    @user-yb8kg3ct5s23 күн бұрын

    It's really hard to keep track of everything but in the end I managed to do it! Thank you so much!

  • @iwillcatchulateryanoob3429
    @iwillcatchulateryanoob3429 Жыл бұрын

    nice video!!!!!!!! it helped me a lot! i'm a new scratch developer and your assets helped me a lot!

  • @jeditz8
    @jeditz82 жыл бұрын

    14:31 XDD "obviously banana is not gonna cut it XD"

  • @Drachenbauer
    @Drachenbauer2 жыл бұрын

    Draw the level in bitmap mode and it always flips exactly around the center of the canvas and is lined up perfectly with the first one.

  • @yourboyfriend5581

    @yourboyfriend5581

    2 жыл бұрын

    and then vector it

  • @itz_nardos1234

    @itz_nardos1234

    Жыл бұрын

    @@yourboyfriend5581 that doesn't work

  • @edilbertleyson

    @edilbertleyson

    Жыл бұрын

    @@itz_nardos1234bruh

  • @chronosVR.2763
    @chronosVR.2763 Жыл бұрын

    1:24 I don't have this issue, but I like my levels this way because I like the color palette of black and white because my games are often very simple, but with fun gimmicks like jumping on the mouse pointer to get to other areas, etc.

  • @Hoco30
    @Hoco30 Жыл бұрын

    Yeah, advanced scratch tutorial for beganner. And very good tutorial! Hope i can master some of it by watching this turorial.

  • @hermanfarmer1454
    @hermanfarmer14542 жыл бұрын

    i saw an appel appear :O 18:50

  • @thefiresnakevenom
    @thefiresnakevenom2 жыл бұрын

    "Hello fellow Scratchers!" Let me be honest, it has to be my favorite line of every griffpatch video lol

  • @wajeehrizvi

    @wajeehrizvi

    2 жыл бұрын

    true

  • @fridayfunkgaming291offical

    @fridayfunkgaming291offical

    2 жыл бұрын

    "Hello fellow Scratchers!" - Griffpatch

  • @snehajindal1779

    @snehajindal1779

    2 жыл бұрын

    Same with me

  • @iceshushie7397
    @iceshushie7397 Жыл бұрын

    I used scratch for almost a year and I get better when I watch griff patch’s videos no one can stop me

  • @griffpatch

    @griffpatch

    Жыл бұрын

    You are right there! :)

  • @pewpewpixel9301
    @pewpewpixel9301 Жыл бұрын

    Sometimes I make the Level move when I press the controls instead of the level changing when you enter the next scene, but I prefer when the level changes scenes like the way you did it instead. I haven't gotten it to work as well yet, so it's just an idea.

  • @varad.tiwari
    @varad.tiwari2 жыл бұрын

    What other things will you add, like- the moving obstacles, spikes, saws, or anything else??

  • @griffpatch

    @griffpatch

    2 жыл бұрын

    Animation next with hitboxes, then we'll do more complex things like handling the slopes, and moving platforms, etc

  • @heitorsant1759

    @heitorsant1759

    2 жыл бұрын

    @@griffpatch that sounds fun

  • @juliantello5740

    @juliantello5740

    2 жыл бұрын

    @@griffpatch sounds great

  • @varad.tiwari

    @varad.tiwari

    2 жыл бұрын

    @@griffpatch Ok, Thanks

  • @ApeiriophobicGD
    @ApeiriophobicGD Жыл бұрын

    Tip: If you have the border of the platform to the color of which the player if coded to collide with, then there's no need to do all the extra color collision stuff.

  • @dexterapple5288

    @dexterapple5288

    Жыл бұрын

    true

  • @BonkerSspoll
    @BonkerSspoll Жыл бұрын

    Great Tip for starters , when seting or changing a variable make sure its the right one

  • @ItsTheAlex

    @ItsTheAlex

    Жыл бұрын

    Hey I’m not sure what I’ve done wrong but as soon as I drop in the turn 180 degrees my sprite flips and I don’t know what to do, it’s in the define collisions direction script

  • @lewisfamily161
    @lewisfamily1615 ай бұрын

    your channel is simply outstanding Griffpatch

  • @sapphireglitter5257
    @sapphireglitter52572 жыл бұрын

    Me: **about to draw** Griffpatch: **post a video** Me: screw it im opening scratch

  • @juliantello5740

    @juliantello5740

    2 жыл бұрын

    lol same but doing homeworks xd

  • @rollen1official

    @rollen1official

    2 жыл бұрын

    L0L

  • @juliantello5740

    @juliantello5740

    2 жыл бұрын

    xd

  • @lemmy15yt
    @lemmy15yt Жыл бұрын

    Personally, watching these videos to refresh my skills, I prefer using the v^ characters in the costume names to sense when I can change the scenes. So the levels feel more open, especially when I make sky-themed levels.

  • @ItsTheAlex

    @ItsTheAlex

    Жыл бұрын

    Hey I’m not sure what I’ve done wrong but as soon as I drop in the turn 180 degrees my sprite flips and I don’t know what to do, it’s in the define collisions direction script

  • @lemmy15yt

    @lemmy15yt

    Жыл бұрын

    @@ItsTheAlex Your "sprite rotation" is probably set to all around. Change it to left/right and you'll be all good.

  • @ItsTheAlex

    @ItsTheAlex

    Жыл бұрын

    @@lemmy15yt I thought of that but nope, it’s a much dumber reason I just figured out. I clicked the 180 so the sprite turned and just never reset, all sorted now thanks!!!

  • @Papaswee1
    @Papaswee119 күн бұрын

    14:30 "But obviously banana isn't going to cut it." got me laughing lol

  • @chibacha21_CarBoi
    @chibacha21_CarBoi2 ай бұрын

    I have a few recommendations here to slightly improve this code: 1. If the fix collisions loop still doesn't work with 128 tries, you can swap the repeat loop for a "repeat until" loop that has the input "touching 1" so that the loop repeats until the problem is solved. 2. You can solve the problem addressed at the end of the video without using walls! Just use "if else" brackets in each part of the existing "if else" bracket in the change scene script. The input for the top one is "scene # increases when the player isn't on the last level. As for the bottom one, use the input "scene # > 1", which makes scene # stay the same when on the 1st scene and the player is on the left side. Lastly, to reduce lag, add "stop this script" in each of the else parts of the brackets. I hope this helps! 😁

  • @Metacubed
    @Metacubed Жыл бұрын

    Masterpiece of a tutorial series, your, work, is, AMAZING!

  • @jdh9419
    @jdh9419 Жыл бұрын

    11:58 Actually, I don’t. I want to have it so when the sprite is in the middle of the stage X-wise, a further positive x step will scroll the screen to the right, and a negative one will move it to the left. I also want to have it so when the sprite is in the middle of the stage Y-wise, the screen will scroll the same way it would with x. And I’d also like for them to both work at the same time

  • @kohanmathers-mcgonnell1502

    @kohanmathers-mcgonnell1502

    10 ай бұрын

    Search for infinite scrolling background tutorials and use that logic, stopping the scroll when x = 0

  • @roxyyyxoxo
    @roxyyyxoxo8 ай бұрын

    Even though this didn't work fully for me, some of it did and thank you!

  • @Fuzzy1528
    @Fuzzy1528 Жыл бұрын

    Thanks for those scratch dev tools! They help me clean up my code and they help me find blocks!

  • @_gxated_cr7
    @_gxated_cr7 Жыл бұрын

    Thank you so much we can all see how much effort you put into these!

  • @chiroyce
    @chiroyce2 жыл бұрын

    At 18:05 why don't you add a check to ensure that the SCENE # variable doesn't go below 1? Because if you're in scene one and your X Position is _edit:_ Nevermind you fixed it at 29:59! :P

  • @griffpatch

    @griffpatch

    2 жыл бұрын

    You are quite right, there are loads of extra safety checks and ways to solve every problem. I try to do the bear minimum that works well so as not to boost up my tutorial :) it's a tricky compromise at every stage!

  • @belugabeluga5417

    @belugabeluga5417

    2 жыл бұрын

    @@bb22075 haop

  • @DarkNinja197

    @DarkNinja197

    2 жыл бұрын

    MY SCENE doesn't change after i add all things HELP

  • @omarx204

    @omarx204

    Жыл бұрын

    @@DarkNinja197 same problem dude

  • @kay.h

    @kay.h

    Жыл бұрын

    WHAT:P :]

  • @fionicombrink880
    @fionicombrink880 Жыл бұрын

    My son is LOVING your Video's he just adores them!

  • @dynstinn
    @dynstinn Жыл бұрын

    actually with your pen effects tutorial we can make a check which checks if we are touching the color black and the color woant change that much either so we could check for collisions with the black color outline we can use color sensing all the time again. but If any non interactable object like in the background is black. you will need to make some space for it in your level.

  • @elias-tl6cd
    @elias-tl6cd Жыл бұрын

    I couldn't have done it without you! I wouldn't be where I am today without people like you by my side. I can't thank you enough for being there in my time of need. You have no idea how much your help means to me. For all the things you do, both big and small, I want to thank you. You made this game into a coding experience! I ❤ Scratch and you!

  • @Danielgamer-qq7sp

    @Danielgamer-qq7sp

    Жыл бұрын

    dumby

  • @martinatorprogaming
    @martinatorprogaming Жыл бұрын

    MY PC BROKE

  • @m5alta-

    @m5alta-

    8 ай бұрын

    Lol

  • @martatrinidad9325
    @martatrinidad93258 ай бұрын

    yo griffpatch, your videos are sick and they are really healpfull

  • @elite_afton4933
    @elite_afton49332 жыл бұрын

    The way I enjoy my time is that I watch griffpatchs video and learn from him to make the most creative game!

  • @_Sp_Cd_
    @_Sp_Cd_2 жыл бұрын

    I used your some tile scrolling platformer scripts to make a rpg adventure game

  • @griffpatch

    @griffpatch

    2 жыл бұрын

    Nice!

  • @_Sp_Cd_

    @_Sp_Cd_

    2 жыл бұрын

    @@griffpatch : )

  • @never_stay_pink
    @never_stay_pink2 жыл бұрын

    Even with the “fix collision in direction” set up exactly how you have it, sometimes I’ll transfer between levels and even though it doesn’t look like it’s colliding, I won’t be able to move unless I lift my sprite up, drop it down, and go from there. Is there anything that could be causing this? I’ve tried moving the sprite into the level and activating the section of code, and that part still works. It just doesn’t work on some levels when I’m just playing through or testing the levels.

  • @bichaelafton

    @bichaelafton

    2 жыл бұрын

    I have the same problem, did you ever fix this?

  • @never_stay_pink

    @never_stay_pink

    2 жыл бұрын

    @@bichaelafton for me it seemed to work to just remake the shape to be level again. I looked at the character’s height and one platform was a single pixel higher.

  • @bparcher96
    @bparcher96 Жыл бұрын

    thank you griff patch you have helped me so much!

  • @bluecheese1212
    @bluecheese12129 ай бұрын

    love these tutorials

  • @TheDragonSlayer954
    @TheDragonSlayer9548 ай бұрын

    Who else spot the falling lemon when creating a new block👇

  • @rushworldfunworld

    @rushworldfunworld

    5 ай бұрын

    Me

  • @kellieconnor4319

    @kellieconnor4319

    5 ай бұрын

    Me

  • @user-gq4nd9fo3w

    @user-gq4nd9fo3w

    4 ай бұрын

    Wut?

  • @chieseledboockshelf

    @chieseledboockshelf

    3 ай бұрын

    top comment but only 3 reply? Let me fix that

  • @greggreg126

    @greggreg126

    3 ай бұрын

    LIKE BEGGAR LITTLE KID, HELL AWAITS.

  • @MegaMigOficial
    @MegaMigOficial2 жыл бұрын

    I probably found a problem, in the part of changing the scenarios, the player gets stuck on the edge and is teleporting from one side of the map to the other in looping. What do I do ;-;?

  • @Nightman5694

    @Nightman5694

    2 жыл бұрын

    if your getting stuck between scene 1-2, just make sure scene 1 is named scene1 and not scene.

  • @homareyoshi4194

    @homareyoshi4194

    2 жыл бұрын

    @@Nightman5694 but i named like that

  • @dordegrujovic8864
    @dordegrujovic88646 ай бұрын

    best tutor ever even tho i'm watching this 2 years later

  • @marquis83182
    @marquis831829 ай бұрын

    The one time griffpatch told us to NOT click "run without screen refresh"! Love ya griffpatch.

  • @jeditz8
    @jeditz82 жыл бұрын

    I added that in level 1 you can't go to the left without a left wall!

  • @lhalehoangyennhi8022

    @lhalehoangyennhi8022

    2 жыл бұрын

    wait, how can you comment before this video starts

  • @RammansPizzas

    @RammansPizzas

    2 жыл бұрын

    @@lhalehoangyennhi8022 he is a member

  • @tuyetpham209

    @tuyetpham209

    2 жыл бұрын

    Nhi v việt nam

  • @juliantello5740

    @juliantello5740

    2 жыл бұрын

    @@RammansPizzas oh ok

  • @nipabegum8649
    @nipabegum86492 жыл бұрын

    27:00 I removed the Turn 180 Degrees so it has a cool animation where the player sort of digs out of the ground and stays on top Edit: DONT do this. It will bug out your game in the future

  • @1000_Ways_To_Fail_Chess

    @1000_Ways_To_Fail_Chess

    Жыл бұрын

    Don’t remove it?

  • @Quokky36
    @Quokky36Ай бұрын

    griffpatch deserves a sub. AWESOME VIDEO. easy to follow

  • @ShivenBansal
    @ShivenBansal9 ай бұрын

    Thank you for the link for the scratch addons, really wanted them😀

  • @MobyWanKenobi
    @MobyWanKenobi2 жыл бұрын

    You should add a "Flip over center of canvas" for the costume editor in scratch addons! That would be very helpful!

  • @itsplatinum101

    @itsplatinum101

    2 жыл бұрын

    Yeah

  • @gerhardjogimanuelhutagalun9761
    @gerhardjogimanuelhutagalun97612 жыл бұрын

    Hey, griffpatch! I have a problem: I don't want to prevent a collision bug, but when the scene changes with a different platform position, I want the character to NOT change the scene. I maybe know how to fix that, but I rather listen to your suggestion. So HOW do I NOT change the scene when the next scene platform can make the character stuck?

  • @OCSreal

    @OCSreal

    2 жыл бұрын

    If you want it so the player cant go back to the previous scene, make a wall in the level sprite where that scene is and make it only a few pixels wide so the player doesnt get stuck in the wall

  • @mikavankooten
    @mikavankooten Жыл бұрын

    Never mind I fixed it. For people who have this problem too, this is what I did: I made a custom block. Under define I did change size to 20% under that I did go to x-136 and then wait 0.0001 sec and then change size to 100%. and then I made another script: Forever loop, if x position = and then the furthest x coordinate that I can go into the wall (it didn’t reach till -235) and then wait 0.1 (this is to prevent that you get instant teleported back) and then the custom block under the wait block. Also griffpatch you helped me with a lot of my projects, keep going❤❤.

  • @Mili837

    @Mili837

    Жыл бұрын

    but what is the name of the block?

  • @michaelduff6478
    @michaelduff6478 Жыл бұрын

    Thank you so much for helping because at first I couldn't make anything in scratch

  • @BuzzyBee13
    @BuzzyBee132 жыл бұрын

    Hey Griffpatch, can you add enemies in the next tutorial? Or how about water?

  • @griffpatch

    @griffpatch

    2 жыл бұрын

    Not yet... more platforming goodness to do first!

  • @BuzzyBee13

    @BuzzyBee13

    2 жыл бұрын

    @@griffpatch Ok! Even though I haven't used this engine yet, I'll find it useful in the future ;-)

  • @michaelduff6478
    @michaelduff6478 Жыл бұрын

    Thanks for the help at first I didn't know how to make anything on scratch

  • @alexblackbourne7005
    @alexblackbourne70052 күн бұрын

    Thank you so much for these tutorials😀

  • @michaelboubal8067
    @michaelboubal8067 Жыл бұрын

    The ASMR nobody knew we needed

  • @mitchellchance6602
    @mitchellchance6602 Жыл бұрын

    Thank you this really helped me be able to code platforming game on scratch.😅😊

  • @CursedBySnail
    @CursedBySnail Жыл бұрын

    I love you videos so much they are super helpful

  • @LirikanMataDewa
    @LirikanMataDewa2 жыл бұрын

    Thanks for the extensions griffpatch

  • @colin253420
    @colin253420 Жыл бұрын

    thank you for teaching us new stuff in scratch

  • @griffpatch

    @griffpatch

    Жыл бұрын

    My pleasure!

  • @Not_BobYT
    @Not_BobYT Жыл бұрын

    I can say this without doubt that if you got any scratch problems or needs for a tutorial, griffpatch is your number 1 stop

  • @TeachingIslam
    @TeachingIslam Жыл бұрын

    Tysm! Helped a lot!

  • @w_4.izzy_editzz
    @w_4.izzy_editzz Жыл бұрын

    If you guys are not going to the other level make sure you put a space in between the number of the Scene

  • @bababoeyman9714
    @bababoeyman9714 Жыл бұрын

    If u want to fix the problem of multicoloured levels having bad collision you can just make an outline and set the colision to THAT colour so that you can change the colour of the level without the method youre using.

  • @kaneiros945

    @kaneiros945

    Жыл бұрын

    you....have....saved.....my.....life!!!