frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

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

Comments

  • 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.
Sign In or Register to comment.

flowlab.io

| make games in your browser
@ 2017 Flowlab.io, All rights reserved.

Contact us

Get In Touch