How to Make a Scrolling Game in Scratch

Поделиться
HTML-код
  • Опубликовано: 12 окт 2024
  • Today I will be teaching you how to make a scrolling game in Scratch.
    Sample project: scratch.mit.ed...

Комментарии • 107

  • @RonicTheEgg
    @RonicTheEgg 2 года назад +8

    If you want smooth movement you can use
    Change x variable by: x variable - scroll x * 0.1
    Change y variable by: y variable - scroll y * 0.1

  • @truettweber
    @truettweber 3 года назад +8

    I recomend a custom block that says clone at x:(x) y:(y) then inside of it set xvar to (x) and yvar to (y) it works well & keeps the code cleaner

  • @c0dertang
    @c0dertang 3 года назад +5

    this is nice! note to self: bookmark this for future reference

  • @TheCra5yCartoons
    @TheCra5yCartoons 2 года назад +3

    What an nice totally real voice

  • @O_Gaming_Lord
    @O_Gaming_Lord 9 месяцев назад +1

    your a w i was searching exactly for this and couldnt find i was searching for a day!

  • @reloaded1472
    @reloaded1472  3 года назад +23

    oof I knew no one would view this why do I even try

  • @kylemariano6624
    @kylemariano6624 6 месяцев назад

    I have a project on my computer class and we were tasked to create a game, Im planning to make a side scroller rpg game, thanks man

  • @ollieforbes7677
    @ollieforbes7677 3 года назад +9

    Very NICE tutorial! I already know how to make a scrolling game easily, but I love your Scratch content so I was super excited watch these videos!

  • @lokmancharaf8070
    @lokmancharaf8070 Год назад +1

    Is it possible to split a screen into two screens because I want to do it on a second object as well?

  • @wolfgangr.3268
    @wolfgangr.3268 Год назад +1

    Why isn't it redundant to hide the object with the size hack and then hide it (again) if its off screen?

  • @28qwestnmrk
    @28qwestnmrk 3 года назад +1

    This will be good for the game I have wanted to make for months

  • @julesy1x810
    @julesy1x810 3 года назад +6

    this tutorial is awesome you should make a continuation of the tutorial that covers platform detection and physics

  • @luizdasilvapinheiro5502
    @luizdasilvapinheiro5502 2 года назад +1

    1:17
    WOAH 😨

  • @shadow-xg6sp
    @shadow-xg6sp 2 года назад +2

    I have question, how would I have let's say a object on the outside of the cam, so the object would spawn where the player camera is not.

    • @drherozero2899
      @drherozero2899 Год назад

      yeah I have the same question its been a year when we will get the answer

  • @blooperboy22
    @blooperboy22 2 года назад +2

    how do i make a bigger level?

  • @milanklimuntowski7822
    @milanklimuntowski7822 Год назад +1

    okay but now if i walk to the edge its just whiteness. How would i make it so that the ground is always showing?

  • @can5063
    @can5063 3 года назад +2

    Wow this tutorial can be helpful for new scratchers, anyway nice video :P

  • @MISKALEEMoe
    @MISKALEEMoe Год назад +1

    help me to do a platformer game parkour and very hard please

  • @weirdcomicst.v.1927
    @weirdcomicst.v.1927 Год назад +1

    Hey I have a question. If I wanted this to be multiplayer, would I just make the x/y variables cloud variables?

    • @Lolium-The-Atom
      @Lolium-The-Atom Год назад

      Nope. Unfortunately Cloud varible is sended every 1/10th so making a lot of clouds varible. You have to push all informations into one cloud. So you have to make coder and decoder. Clouds support other number. Giffpath made the tutorial how to do system like that so u can check but basically their system works in this pattern: (n)x(n)y
      where n is number of digits to read and xy are the positions. There is no "-" sign but you can use 0 at the start couse numbers never starts with 0.
      You can also use more bit based system. Acculity we need no negative numbers. With negative numbers, the canvas size is 480x360 but we can something like Celsius - Kelvin thing and say that the canvas size is 960x720 and say that negative numbers doesn't exists. So right now 0x Kelvin = -480x Celsius. Lets use zeros at the start to make our digit constant length to let know to our computer that first 3 digit always represents x axis and second 3 always represents y axis. Eg 090711 means 90 x kelvin and 711 y kelvin and after subtracting 480 from x and 320 from y we get -390x and +391y
      To make something like text sending you can do something like ASCI code that means for every character you can give other number code and use constant number of digits.
      In complicated game you have a lot of informations so you have to send.
      You can do something like (data type)(amount of bits if required)(bits)
      about bits amount: you can use 9 base system and ending string with 9 instead of giving constant amount of digits if you don't want limits but prapobly you want to give some some limits like max message length

  • @shaonlidasmallick9416
    @shaonlidasmallick9416 3 года назад +1

    Will not the groud sprite get stuck at the edge?

  • @Zelurpio
    @Zelurpio 3 года назад +2

    ah, yes, i followed this tutorial step by step.
    *tries to hide stuffing all the code into backpack*

  • @penguin_123
    @penguin_123 2 месяца назад

    I made this but it was just a small platform that you could walk on. I needed a bigger one pls tell me hlw to fix this.

  • @AugustWakin
    @AugustWakin 3 месяца назад

    Hey idk if you are still alive but how do you have a moving object in the background

  • @willculgaming
    @willculgaming 2 месяца назад

    i think the sample project isnt shared or something, bec it wont do anything, it just sends me to the crashed screen.

  • @galaxyverse2508
    @galaxyverse2508 6 месяцев назад

    you deserve move than 309 subs

  • @janesastra9633
    @janesastra9633 Год назад

    nice tutorial BTW

  • @weirdcomicst.v.1927
    @weirdcomicst.v.1927 2 года назад +2

    1:10, WHAT THE FU--

  • @xboxhaslag_69
    @xboxhaslag_69 4 месяца назад

    I tried it. It broke my current movement script, made it so that my character is bigger then the screen and the he cherry on top, it doesn’t even work

  • @superpmario
    @superpmario 2 года назад

    It makes my character big

  • @NoahAnimates743
    @NoahAnimates743 2 года назад +2

    Dude how do you expect me to copy the coding at 1:12 ? like what the heck

    • @swbullen1
      @swbullen1 20 дней назад

      U copy it bro wdym

  • @infinitetime3000
    @infinitetime3000 3 года назад

    New subscriber alert!

  • @thenerdyminifigure
    @thenerdyminifigure 2 года назад +1

    thx, really helped, although I do want my ground sprite to be a lot bigger and it won't let me change it past 19. Anybody know why?

    • @ventisstuff
      @ventisstuff Год назад

      yea, make a costume that is super small, set the costume to ur small costume, you can set the small costume to as big as you want, then set the costume back to your map

  • @h4i12u6
    @h4i12u6 2 года назад

    Best part is the character is a capsule/bean

  • @mibsmartlearning9621
    @mibsmartlearning9621 Год назад

    Pls make more vids we need it

  • @kskwqoos5924
    @kskwqoos5924 2 года назад +1

    The part where you get the if den I can’t figure out what the operators are

  • @sadfasfhasjkfadsf
    @sadfasfhasjkfadsf 2 года назад

    whats the first game in the intro?

  • @circledoesstuff7293
    @circledoesstuff7293 Год назад

    the position block is making the player tiny, can someone help fix it?

  • @RaheemKafayat-y9g
    @RaheemKafayat-y9g Год назад

    Beautiful

  • @ollieforbes7677
    @ollieforbes7677 3 года назад

    And also, "stole your pizza"

  • @Rockpaperscissor999
    @Rockpaperscissor999 Месяц назад

    halp my character isnt co opperating with me :(

  • @baotieu6741
    @baotieu6741 Год назад

    Did u can make more Lvl

  • @somebodywhomakesstopmotion5978
    @somebodywhomakesstopmotion5978 9 месяцев назад

    Great tutor

  • @FeniteFr
    @FeniteFr 3 года назад +1

    great !

  • @mohdazwantheboy
    @mohdazwantheboy Год назад

    Make Me An Simple Ai Player (but smooth) in Scratch (plz reply for your video link.)

  • @silvan668
    @silvan668 9 месяцев назад

    the sample url doesent work any more

  • @janesastra9633
    @janesastra9633 2 года назад

    i want know how you make a perfect BEAN n scratch gimi tutorial

  • @Cheezi-w8e
    @Cheezi-w8e 2 месяца назад

    Wait how do you make a map

  • @Agn-1
    @Agn-1 2 года назад

    It’s funny that he uses Tts for narration and acts as if it was his real voice

  • @2D_Sphere
    @2D_Sphere 3 года назад

    High quality thank you

  • @scratchry1185
    @scratchry1185 2 года назад +1

    Can u make it ♾

  • @thuhtunaing9001
    @thuhtunaing9001 2 года назад

    nice😊

  • @RonicTheEgg
    @RonicTheEgg 2 года назад

    pls don't steal my pizza 😭

  • @MISKALEEMoe
    @MISKALEEMoe Год назад

    thank you

  • @srs6128
    @srs6128 2 года назад

    once i made a scrolling bossfight but didn't share it.

  • @Fak3Dr3adH3ad
    @Fak3Dr3adH3ad 2 года назад +1

    i followed this tutorial a bunch of times and it never worked

  • @cutedugong
    @cutedugong Год назад

    how to make define block

  • @tiltedhorizon291
    @tiltedhorizon291 3 года назад +1

    helpful :)

  • @cicero31415
    @cicero31415 2 года назад

    THANK YOU

  • @eee2384
    @eee2384 4 месяца назад

    🎉🎉🎉🎉

  • @JonahChege
    @JonahChege Год назад

    make a game with only costom blocks

  • @CakeKeeperYT
    @CakeKeeperYT 11 месяцев назад

    W

  • @mohammedsaad4377
    @mohammedsaad4377 9 месяцев назад

    How to make player plsss replay

  • @Mixkit_real
    @Mixkit_real 2 года назад

    a flip the scrath project is removed

  • @egmon16
    @egmon16 Год назад

    project went down :(

  • @icmy1232
    @icmy1232 3 года назад +1

    Did you use text to speech lol

  • @ob_animate2501
    @ob_animate2501 Год назад

    It didnt work for me but great tutorial

  • @game_time2Official
    @game_time2Official Год назад

    first word t-t-t totally my real voice #STOPTHECAP

  • @JudahLeonard-um1fz
    @JudahLeonard-um1fz Месяц назад

    erm the link dosent work

  • @chromeisbadalex6466
    @chromeisbadalex6466 3 года назад

    Bruh it dosent take u to the damn website

  • @dinoman1963
    @dinoman1963 2 года назад

    What it didnt work and i just chek it out evrything is like you said

  • @nateski-v1h
    @nateski-v1h Год назад

    It did not work. IDK

  • @PXLFrosty84
    @PXLFrosty84 Год назад

    It didn’t work :/

  • @rebekahkong2617
    @rebekahkong2617 3 года назад

    its not working

  • @estherthecreator7065
    @estherthecreator7065 3 года назад

    1:50 PROJECT NOT SAVED 🤣🤣🤣🤣🗿

    • @veto_real
      @veto_real 3 года назад

      What is funny about it kid?

  • @mistypro615
    @mistypro615 2 года назад

    💀

  • @egg-dw5bw
    @egg-dw5bw Год назад

    It dont work

  • @HappyBacon436
    @HappyBacon436 10 месяцев назад

    steal not stole

  • @benjamin0954
    @benjamin0954 2 года назад

    Doesn't work :|

  • @BlackFrawg
    @BlackFrawg 2 года назад

    I followed this tutorial. ruclips.net/video/D16hTnDGweo/видео.html And I edited the code some so that instead of changing the position it changes the x and y variables. It is going all fine and dandy except when I touch the ground it gets unplayabley laggy.

    • @weirdcomicst.v.1927
      @weirdcomicst.v.1927 Год назад

      Maybe you forgot to tick the custom block to "Run without screen refresh?" You turn it on while editing the custom block and it makes all code under the custom block run instantly. Great for reducing lag!

  • @metinm602
    @metinm602 2 года назад

    bro it isnt nice i tryed

  • @tristemasverdade6416
    @tristemasverdade6416 11 месяцев назад

    this sucked. not only did it not help, it RUINED all the code i had already written.

  • @danixhimself
    @danixhimself Год назад

    doesnt work at all dude

  • @xxspeedxx3373
    @xxspeedxx3373 2 года назад

    fake voice