how to change the hitbox to an object

so I want my character to lose one life if he hits the enemy, but I feel like I want the hitbox to be a bit smaller sometimes. because when you hit the enemies it sometimes does not feel like you really hit it

The hitbox’s size is equal to the sprite’s size. So if you make the sprite smaller the hitbox will be smaller too.

If you want the sprite to be bigger than the hitbox you have to make an animation which is bigger than the original sprite. In the behaviors connect an once to an animation and make it stay on the last frame (or loop animation).

Small tip: Press Ctrl+D to see the hitboxes of all objects. Make sure flowlab is focused because Ctrl+D is also a browser shortcut which adds the webpage to favourites.

1 Like