Scratch for Java

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

View on GitHub

Syntax

Java

.setHitbox(shape)

Parameters

Name Data Type Description
shape Shape the hitbox

Return

void

setHitbox()

Create Shareable URL

Select Sections