How to make a hitbox system on scratch [Full tutorial]

Поделиться
HTML-код
  • Опубликовано: 4 ноя 2024

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

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

    Sorry if the intro was way to loud. I forgot to check that out.

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

    But the player goes out of the hitbox. to fix this all you need to do is x position + movement speed and y position + movement speed. If you are using variable to control the player's speed then you need to do x position + variable,speed and y position + variable,speed. negative movement may not work sometimes, to fix it all you need to do I create a -variable,speed,and do
    x position + -variable,speed and y position + -variable,speed.

  • @1u-yazdeinyuhaimi509
    @1u-yazdeinyuhaimi509 3 года назад +5

    yooo this helps a ton! thanks

  • @SumitS-e8f
    @SumitS-e8f Год назад

    you can put slopes backgroud on ur game

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

    i cant find the switch script vid
    btw goood vid

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

    Bro using brave, LIKE

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

    How do you make a hitbox for an object that's turning?

    • @letsbreakitdown3
      @letsbreakitdown3 8 месяцев назад

      make a hitbox in you're sprite then put a forever loop switch costume to hitbox set rotation style to dont rotate then add whatever makes the game operate after that as long as the thing operates faster than you can see then at the end switch costume to you're sprite then set rotation style all around

    • @CodTypist
      @CodTypist 8 месяцев назад

      @@letsbreakitdown3 thanks for the reply bro, but I no longer do scratch and am working on different languages. I really appreciate you a lot and will definitely apply what you told me to other languages! Thanks

    • @letsbreakitdown3
      @letsbreakitdown3 8 месяцев назад

      @@CodTypist wait i messed that up uh make you're player only a hitbox then make another sprite which is what you're sprite is then make the sprite go to the player all the time also dont forget to set the player ghost effect to 100 then make the other sprite make any animation you want and also thats ok

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

    Does this works on Bitmap?

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

    1:32 bro did you just call a square a triangle

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

      Possibly since I'm kinda confused between a square and a triangle sometimes I called a square triangle lol

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

      @@ShawinTutorials lol

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

      LOL bro
      @@ShawinTutorials

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

    *the stage light are blaring

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

    why wont the hitbox work

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

    ha

  • @nicholasfueston9672
    @nicholasfueston9672 8 месяцев назад

    it will not do it

  • @Pokemoniscool-e8c
    @Pokemoniscool-e8c Год назад

    low quality preview

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

    hi i want to ask somthing how is there a ad if you only have 400 subs?

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

    this didnt help
    it just froze my game