Sets the hitbox of the sprite.
View on GitHub
set hitbox (hitbox)
Name |
Data Type |
Description |
xcoordinates |
int[] |
An array of xcoordinates |
ycoordinates |
int[] |
An array of ycoordinates |
hitbox |
Hitbox |
A hitbox |
...coordinates |
int |
A variable argument list, which has the following structure: x1, y1, x2, y2, x3, y3 ... |
boolean