Scratch | How to make hitboxes + hitboxes for clones

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

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

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

    You just got me an A on one of my projects

    • @RamenNoodilez
      @RamenNoodilez Год назад +6

      Lmao

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

      What do you mean

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

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

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

      @@sefafut ok

  • @BananaMan6763
    @BananaMan6763 Месяц назад +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 Месяц назад

      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.

  • @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?^^

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

    second

  • @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)

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

    first

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

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

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

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

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

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

  • @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.

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

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

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

    So helpful!

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

    good tutorial i lern alot

  • @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

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

    tyty

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

    Ty

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

    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!

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

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

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

    This will be good for making a-60

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

    what if you have differnt costumes for one sprite

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

    octopus be like: i be as fast as frick boiii

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

    how do you do it on multiple sprites?

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

    Hey guys! get him to 1K subs!

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

    I can't get the hitbox to work

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

    You saved my life

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

    📝 interesting

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

    Tysm this is a lifesaver

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

    this doesn't work

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

    Good job 👍

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

    4, 006th

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

    Thanks man

  • @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

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

    Thanks 👍

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

    dont worked just like i expected

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

    it dident work for me :(