Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do you add hit boxes.
- coIIide
-
100+ posts
How do you add hit boxes.
Can you elaborate? If you mean for a platformer, just switch to a costume before doing all the code to move, then switch back.
Last edited by coIIide (Jan. 19, 2024 02:59:20)
- Masterscratch1117
-
500+ posts
How do you add hit boxes.
Make sure to use a run without screen refresh custom block to prevent flickering between the costume and hitbox.
- pythonicKI
-
100+ posts
How do you add hit boxes.
The most easy way for a beginner is probably to make a hitbox sprite, draw the hitbox, and put this code:
- PotatoManthetrue
-
34 posts
How do you add hit boxes.
Just do this
There is probably an easier way, but this is what I could get off the top of my head. I also suggest converting this to a custom block instead when a “when green flag clicked.”
There is probably an easier way, but this is what I could get off the top of my head. I also suggest converting this to a custom block instead when a “when green flag clicked.”
Last edited by PotatoManthetrue (Jan. 19, 2024 19:46:27)
- pythonicKI
-
100+ posts
How do you add hit boxes.
@potatomanthetrue's script, but better
Last edited by pythonicKI (Jan. 19, 2024 20:28:23)
- pythonicKI
-
100+ posts
How do you add hit boxes.
(#10)the question was about hitboxes… i don't see hitboxes here?i think this is the easiest
- chippysmall4
-
1000+ posts
How do you add hit boxes.
This Is A Hitbox Based Engine: https://scratch.mit.edu/projects/948304375/
Check The Collision Custom Block For How To Make A Hitbox
Check The Collision Custom Block For How To Make A Hitbox
- TheUltimateHoodie
-
1000+ posts
How do you add hit boxes.
this script requires no extra work it functions at a hitbox very cool(#10)the question was about hitboxes… i don't see hitboxes here?i think this is the easiest








- pythonicKI
-
100+ posts
How do you add hit boxes.
(#13)but there's no hitbox? or is this script supposed to be in the sprite of the hitbox or something?this script requires no extra work it functions at a hitbox very cool(#10)the question was about hitboxes… i don't see hitboxes here?i think this is the easiest
what do you mean “it functions at a hitbox”
- TheUltimateHoodie
-
1000+ posts
How do you add hit boxes.
just insert the script at the bottom of any script and it functions at a collision (hitbox) script(#13)but there's no hitbox? or is this script supposed to be in the sprite of the hitbox or something?this script requires no extra work it functions at a hitbox very cool(#10)the question was about hitboxes… i don't see hitboxes here?i think this is the easiest
what do you mean “it functions at a hitbox”
- Discussion Forums
- » Help with Scripts
-
» How do you add hit boxes.