HOW TO CREATE A PHYSICS ENGINE IN SCRATCH!!!

Поділитися
Вставка
  • Опубліковано 14 лис 2024

КОМЕНТАРІ • 261

  • @syedaarizhuq
    @syedaarizhuq 2 роки тому +36

    This is literally the exact physics engine i was searching for

    • @syedaarizhuq
      @syedaarizhuq 2 роки тому +2

      also dont use the ground as a backdrop use it as a sprite

    • @syedaarizhuq
      @syedaarizhuq 2 роки тому +4

      Because "touching color" on a very colorful ground means LOTS of conditions, so if you use it as a sprite then just give "if touching sprite" its less laggier more efficient & less overcomplicated bugs

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

      What other physics engine would you be looking for?

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

      @@leomartin7409he could’ve been looking for one that uses balls

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

      me to

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

    For the people who need it:
    make the variables direction, slope, xVel, yVel, gotHold, moveX, and moveY to this sprite only, or else it won't work. I know he already says this in the video, but I just wanted to warn people without add on's before that continue.

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

      bruh ☠️

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

      I need to completely replace my variables now...

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

      @@Unplugged7 Just use plugins, it's not that hard.

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

      @@MagnetizedBread he cant he's unplugged

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

      thank god i have addons

  • @koopagamesinc4676
    @koopagamesinc4676 2 роки тому +19

    now show us how to make angry birds with these physics for the buildings

  • @inaayel922
    @inaayel922 2 роки тому +4

    0:00 to 0:01 yo his voice changed so much in 1 sec

  • @zippycat
    @zippycat 2 роки тому +25

    just a little bit janky, but still impressive compared with scratch's standards

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

    amazing tutorial! under 30 minutes and works almost to perfection

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

    For literally no reason, I can't throw the cube in the X direction. Can anyone help me?

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

      I have no idea why this is happening for you I am sorry for you😢

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

      Make sure ''hold'' is a Global variable (for all sprites), if it still doesnt work u can send the project link Ill check it out

  • @hubbyflashgaming5700
    @hubbyflashgaming5700 3 місяці тому +1

    The blocks like to wobble a lot. 😂😂

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

    9:45 thank god you noticed that

  • @Cherrylime_Studios
    @Cherrylime_Studios 2 роки тому +2

    hippity hoppity your code is now my property

  • @pixelgames2391
    @pixelgames2391 2 роки тому +3

    you are the first who made cube physics tutorial!

  • @teresakessler4882
    @teresakessler4882 2 роки тому +11

    When I hold the cubes they spin around clockwise for some reason. This reason makes it really hard for the blocks to stack on top of each other.

  • @weegie3343
    @weegie3343 2 роки тому +4

    wow, just 20 minutes and you get what I would do in 20 hours

    • @YepItsSandro
      @YepItsSandro 2 роки тому

      U mean never.

    • @weegie3343
      @weegie3343 2 роки тому +5

      @@YepItsSandro no like i’m ok at scratch it’s just that I procrastinate a lot and I will need to fix about 34,421 bugs as well

    • @haltofan222
      @haltofan222 2 роки тому +1

      This?! in 20 hours!? I can make this in 20 years!!

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

      @@haltofan222 yeah your gonna meet death in 20 years

  • @snowflake870
    @snowflake870 2 роки тому +1

    this is giving me a lot of new ideas, tysm for uploading

  • @tabbyearth8377
    @tabbyearth8377 2 роки тому +3

    dude you earned a sub

  • @plutoyung1002
    @plutoyung1002 8 місяців тому +2

    I can't pick up the cube, when I click the cube it just teleports to my cursor then just falls to the ground and cant never be picked up again

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

      Set the hold variable to all sprites

    • @King_sobb
      @King_sobb 12 днів тому

      Make sure your setting hold to 0 in a forever loop

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

    I thought it was a kid at the start😂

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

    8:00

  • @sakkalwin4932
    @sakkalwin4932 2 роки тому +2

    very good not gonna lie this is perfect for games that has physics👍👍👍👍👍👍👍👍👍👍

  • @W7K-35
    @W7K-35 2 роки тому +2

    It actually matters when the hold? is for this sprite only, it should be on for all sprites!!

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

    i had a problem for when just started there was nothing but the ground cus the block was in hide and i went over it again and made sure i had the same code i dont know why

  • @Pandom-
    @Pandom- 2 роки тому +1

    Mine can't tumble around :(

  • @Klonoa1488
    @Klonoa1488 2 роки тому +1

    Now this is an opportunity to make a 2d ragdoll sandbox game

  • @SMG20001
    @SMG20001 2 роки тому +2

    This is the best tutorial I had in my life

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

    yo if i had known that it said for all sprites! i didnt have to edit my game to fix the variables. very helpful tutorial!

  • @Ultoxgamer
    @Ultoxgamer 2 роки тому +1

    I don't know why but my sprits just keeps falling through the backdrop

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

    Every time I pick up the cube it glides to the wall and grows out of the ground like a tree

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

    Thank you so much for this video. You helped me a lot 😀

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

    I can’t throw mine and they randomly tp to the floor

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

      that is because you drag objects while editing so go to project page to test

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

      ​@@marielaoviedo8789ohhhhh

  • @DoorsBlox
    @DoorsBlox 2 роки тому +1

    THANK YOU SO MUCH THIS IS AMAZING!

  • @Aetherzin._
    @Aetherzin._ 2 роки тому +1

    Thank you

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

    Followed all the steps but the cubes are acting funky and going to 1 corner and spazzing out. And when i grab them out, they either stay in place or go back to one of the corners

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

    24:29 "The most famouse sentence in 1960s"

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

    For some reason everything works, but the cubes wont turn when on slopes or edges. Help

  • @reeli9053
    @reeli9053 2 роки тому

    the cubes be like magnetic to the edges

  • @jakobarena1060
    @jakobarena1060 2 роки тому +1

    Wow I love your Videos

  • @verysneakyspy
    @verysneakyspy 2 роки тому +1

    Hey, my cubes won't turn, why is that?

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

    There is one problem with this, when you make a clone I believe it will also clone the current clone so you get two instead of one, however one of them in in "hide" mode, not sure if this could be a problem

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

      if the clone block was plugged into a "recieve brodcast" block, it would create clones for the ammount of clones + the original sprite.

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

    my cubes keep going to the right

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

    i built off yours and made an even better one! thank you for this and helping me

  • @HankTheTank32
    @HankTheTank32 2 роки тому +1

    Rename this to how to break your computer

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

    0:00 YO *sudden adult*

  • @mibsmartlearning9621
    @mibsmartlearning9621 5 місяців тому

    bro use glacial epoch then ice bird then ice spears then ice surge its a rlly good combo for first sea

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

    my boxes land for half a second, start spinning then flal through the platform

  • @gavinleonard4848
    @gavinleonard4848 2 роки тому +1

    my object dosent work, it just follows my mouse and spins, it works a bit, but its really floaty, always spinning, and it gets stuck alot

  • @sousbassement
    @sousbassement 5 місяців тому

    Pov : You are making a 3d physics engine in Scratch:

  • @crusader_gaming8273
    @crusader_gaming8273 2 роки тому

    My dude hit puberty at the start from the intro

  • @itscooler_
    @itscooler_ 2 роки тому +1

    When I start the project my cubes are spinning so clockwise very fast help

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

    legend thank you so much

  • @KVAnim
    @KVAnim 2 роки тому +1

    I can't pick up the blocks though I went through the code

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

    the blocks arent colliding with each other for me

  • @coderflowerdev
    @coderflowerdev 2 роки тому

    I don't think you mentioned to put the TURN block..... :)

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

    when you find the tutorial you needed and is better than your teacher

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

    Not bad!

  • @cheir1000
    @cheir1000 2 роки тому +1

    Deku im on turbowarp please help me for the clone moving right

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

    For some reason when the block touches the ground it teleports back to the top

  • @Foxtrot-27
    @Foxtrot-27 2 роки тому

    This is really good and well made, except for 1 thing. when you have to go back and replace the variables, maybe PUT something IN THE VID for making it a for this sprite only, it really only wastes time

  • @savagecatdev
    @savagecatdev 2 роки тому +1

    cool love ur vids

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

    I tried making gravity but ended up making tangent motion I guess

  • @thebettersiturn
    @thebettersiturn 2 роки тому +4

    I followed your tutorial, but I can't grab the cubes after converting all the variables to a this sprite only variable, could you help?

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

    one thing why can't you change the square into a ball?

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

    Can I remind everyone, this was made for children, yet we can do this!?

  • @Hamburgerhelperisagiantglove

    for some reason, when i grab the cube, it goes all over the place

  • @Unknown-gt8ux
    @Unknown-gt8ux Рік тому

    My cubes kept getting pulled to the side

  • @Cuber_YT
    @Cuber_YT 2 роки тому

    you just got a new sub

  • @SigmaASMRonGyatt
    @SigmaASMRonGyatt 2 роки тому

    My blocks get pushed to the edge of the map and I cant grab them.

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

    Bro I had to watch the whole thing again because he did not tell me the variables were for this sprite only

  • @Ftiandr
    @Ftiandr 2 роки тому +2

    I did it for more than an hour, the cubes were spinning and flying to the right, and I had to redo everything.

    • @rubb5000
      @rubb5000 2 роки тому +1

      same for me

    • @Ftiandr
      @Ftiandr 2 роки тому

      @@rubb5000 It's nice to find people with similar problems.

    • @cheir1000
      @cheir1000 2 роки тому

      @@Ftiandr ducks

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

      Same, this might be outdated? Idk much about scratch, only made my own scripts

  • @Nikaxe
    @Nikaxe 2 роки тому

    Happy new years day!

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

    The fnaf video helped me so much with coding

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

    can someone please tell me, I kind of wrote everything correctly, but my cube always slides to the left?

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

    what have you done to the collisons

  • @milizzo-old-channel
    @milizzo-old-channel 2 роки тому

    19:55 I just got the addon that lets you convert variables to "for this sprite only." It's very handy.

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

      I have too

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

    what did i do wrong things don't rotate ever no matter what, the boxes fall at a set speed the hole time, and i can't drag it's like a reverse magnet.

  • @theunknown3690
    @theunknown3690 2 роки тому

    My spacebar is done

  • @Chaybug0928
    @Chaybug0928 27 днів тому

    I need help, my sprite keeps going right, how can I fix it?

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

    I have a problem because my blocks are sooo slow slower than a snail

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

    help my square doesnt fall of the edge

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

    18:26 It broke the physics

  • @Staing017
    @Staing017 2 роки тому

    This is the best last scratch tutorial of 2021

    • @Bed_Tom
      @Bed_Tom 2 роки тому +1

      but its 2022

    • @adalwolf3422
      @adalwolf3422 2 роки тому

      @@Bed_Tom Maybe he meant it was recorded in 2021?

    • @Bed_Tom
      @Bed_Tom 2 роки тому

      @@adalwolf3422 o h .

    • @adalwolf3422
      @adalwolf3422 2 роки тому

      @@Bed_Tom Is that a bad oh or...?

    • @Bed_Tom
      @Bed_Tom 2 роки тому

      @@adalwolf3422 wdym

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

    broski i did it up to 18:13 and when i click they respawn, and when theyre connected they float and i cant do anything

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

    my block spins around clockwise can sombody help

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

    they keep being throwen to the corner and when i catch it it literally goes to my cursor untill i end it

  • @Theslayerofdoom
    @Theslayerofdoom 2 роки тому

    Can you help me please the box’s just keep rolling

  • @filipryen1347
    @filipryen1347 2 роки тому

    for some reason it teleports away and keeps reset please help me with this i spent my day on this project

  • @anpham-2012
    @anpham-2012 2 роки тому

    WHERE DO WE MAKE USE OF “TURN” BLOCK?!

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

    i cannot drag the box, do you have a solution to solve it?

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

    objects cant bounce and cant be stacked on eatchother becouse the tower is too wobbly, not so physics

  • @jarettyoung264
    @jarettyoung264 2 роки тому

    when I right click on it it doesn't say swap

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

    i wanted to make a physics engine sandbox thx

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

    You could just change it into for this sprite only in scratch addons!

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

    the block won’t rotate when i grab it or put it on a slope and when I grab the block the velocity is messed up and stops grabbing the block and it flys to the corner plus when I put the block against the side of the ground it snaps to the top

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

    I can't throw it litteraly anywhere, I've checked the code multiple times now, but for some reason it doesn't let me actually hold it, it just goes to the mouse pointer when I click it and falls
    I'm at 17:31 at this part btw

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

    Dang it took me hours to attach blocks

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

    Help all the blocks are turning

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

    it can only go up for me i cant find where i messed up.

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

    uhm, my cube wont turn?

  • @Carsonnetic
    @Carsonnetic 2 роки тому

    Don’t you need more objects?

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

    Please make a part 2

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

    Didn't work for me...