Scratch | How to make hitboxes + hitboxes for clones

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

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

  • @scryptedfn4109
    @scryptedfn4109 2 года назад +41

    You just got me an A on one of my projects

    • @RamenNoodilez
      @RamenNoodilez 2 года назад +6

      Lmao

    • @palmossi
      @palmossi 5 месяцев назад

      What do you mean

    • @sefafut
      @sefafut 4 месяца назад +1

      @@palmossi i think he has some school project and he got a on his game for doin dis tutorial

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

      @@sefafut ok

  • @BananaMan6763
    @BananaMan6763 2 месяца назад +1

    Thank you so much for making this. Also, I think another way for making hitboxes for clones is adding the hitbox and visuals in the same sprite, then making it so the clones have a forever loop, and in it it has switch costume to hitbox and below that is switch costume to visual. This makes it so you see the visual, but it has a functioning hitbox.

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

      So I’m currently working on a project that will involve enemies, and I think I’d like to take your approach of making a separate hitbox and visual sprite for enemies and using lists. This is because some enemies in the game I’m working on currently will change the player in point towards them, but if I use the method of putting both the hitbox and visuals in the same sprite then the hitbox would also rotate.

  • @abdou_gamer7161
    @abdou_gamer7161 10 месяцев назад +2

    this is so helpful now my games will turn for the best!

  • @AntiZ0o
    @AntiZ0o 7 месяцев назад

    The nice thing is I’m making a boss and making an animation while it’s moving is getting frustrating. And now with this hitbox all I need to do is loop the animation. Thanks bro!

  • @dermosquitor9984
    @dermosquitor9984 Год назад +5

    Very cool what you have done with the clones and that they dont spin around but still turn in the direction of the player. But i dont get the Thing with the hitboxes. Do they affect the range it needs to touch each other and why?^^

  • @JimmySummon-x6l
    @JimmySummon-x6l 19 дней назад

    Thank You Very Much For Helping Through The Day

  • @etelshin
    @etelshin 17 дней назад

    at 1:37, USE BITMAP if you're game is pixelated, and i dont mean [convert vector to bitmap]

  • @cameronbeaven
    @cameronbeaven Год назад +2

    what about for like, a scrolling menu?like a shop with a scrolling feature. how would i get the hitboxes to stay on one item? (i only have one sprite, and its just a row of the items)

  • @luviana_
    @luviana_ 2 года назад +5

    Why make a hitbox sprite when you can just swap to the costume, check for collision, then swap back to the previous costume? If you fear the controls will interfere with the collision check, you can use variables to control movement (velocity variables, very versatile), and only change the position BEFORE checking collision.

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

      cuz some people want to still be able to switch costumes

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

      @@bereichsleiter8800you could just create a variable and switch the costume to that variable

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

      @@NoobBot3309 thats an idea

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

      I forgot to use variables.

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

    good tutorial i lern alot

  • @smallhead9685
    @smallhead9685 5 месяцев назад

    i might be stupid but how do i make the hit boxes interact, i want to make a wall, and floor

  • @hamzakhaled4107
    @hamzakhaled4107 Год назад +2

    So helpful!

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

    octopus be like: i be as fast as frick boiii

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

    This will be good for making a-60

  • @Am.lion.
    @Am.lion. Год назад

    You saved my life

  • @user-ze8pk2km1u
    @user-ze8pk2km1u 2 месяца назад

    POV: you say basically in every word you say..

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

    Tysm this is a lifesaver

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

    thanks the odd sprite I had in my game made it so I could walk into walls now that isn't happening

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

    Ty

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

    Thanks man

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

    📝 interesting

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

    Hey guys! get him to 1K subs!

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

    Good job 👍

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

    what if you have differnt costumes for one sprite

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

    tyty

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

    why it has to be purple not invisible becase u can see it#######################

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

    how do you do it on multiple sprites?

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

    Thanks 👍

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

    this is wayyy too complicated for me but the hitbox really isnt necessary for my project, thanks anyways

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

    thanks

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

    Bru just put the turn code under the point towards code and the problem is fixed 1:15

  • @patchablesofficial7878
    @patchablesofficial7878 3 года назад +3

    second

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

    I can't get the hitbox to work

  • @Besherba
    @Besherba 3 года назад +3

    first

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

    this doesn't work

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

    it dident work for me :(

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

    dont worked just like i expected

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

    4, 006th