Sprite::setHitbox()
Sets the hitbox: the shape that counts for touching, in costume pixels (origin at the costume's top left corner, y down). It turns, grows and mirrors with the sprite.
Examples
Syntax
Java
.setHitbox(shape)
Parameters
| Name | Data Type | Description |
|---|---|---|
| shape | Shape | the hitbox |
Return
void