timelinefx:timelinefx.CreateBox
Create a new tlBox
Creates a new Bounding box that you can use for collision checking and adding to a tlQuadTree. Use layer to specify a particular layer
to place the box on so that you can more easily organise your collisions. You use 0, 1..and so on up to 31.
to place the boundary on all layers.
@example
Local box:=CreateBox(100, 100, 50, 50, 0)
@end
| Parameters |
|
x |
Top left y coordinate |
y |
Top Left x coordinate |
w |
Width of the box |
h |
Height of the box |
layer |
The layer that the box is on, used for quadtrees |
data |
any Object associated with the box |