Bitmap sprite
Implements: Shape
OperationsIncrements the current x-position
method : public : AddX(x:Int) ~ Nil
Name | Type | Description |
---|---|---|
x | Int | increment to the current x-position |
Increments the current y-position
method : public : AddY(y:Int) ~ Nil
Name | Type | Description |
---|---|---|
y | Int | increment to the current y-position |
Destroys and frees sprite resources
method : public : Free() ~ Nil
Gets bottom position
method : public : GetBottom() ~ Int
Type | Description |
---|---|
Int | bottom position |
Gets the center x-position
method : public : GetCenterX() ~ Int
Type | Description |
---|---|
Int | center x-position |
Gets the center y-position
method : public : GetCenterY() ~ Int
Type | Description |
---|---|
Int | center y-position |
Gets sprite height
method : public : GetHeight() ~ Int
Type | Description |
---|---|
Int | sprite height |
Gets left position
method : public : GetLeft() ~ Int
Type | Description |
---|---|
Int | left position |
Gets sprite position
method : public : GetPosition() ~ Position
Type | Description |
---|---|
Position | sprite position |
Gets right position
method : public : GetRight() ~ Int
Type | Description |
---|---|
Int | right position |
Gets scaling percentage
method : public : GetScale() ~ Float
Type | Description |
---|---|
Float | scaling percentage |
Gets top position
method : public : GetTop() ~ Int
Type | Description |
---|---|
Int | top position |
Gets sprite width
method : public : GetWidth() ~ Int
Type | Description |
---|---|
Int | sprite width |
Renders sprite
method : public : Render(x:Int, y:Int, clip:Rect, angle:Float, center:Point, flip:RendererFlip) ~ Nil
Name | Type | Description |
---|---|---|
x | Int | x position |
y | Int | y position |
clip | Rect | clipping rectangle |
angle | Float | clipping rectangle |
center | Point | center point |
flip | RendererFlip | flip direction |
Sets upper left position
method : public : Set(x:Int, y:Int) ~ Nil
Name | Type | Description |
---|---|---|
x | Int | x-position |
y | Int | y-position |
Sets position
method : public : Set(v2:Vector2) ~ Nil
Name | Type | Description |
---|---|---|
v2 | Vector2 | vector position |
Sets alpha
method : public : SetAlpha(alpha:Int) ~ Nil
Name | Type | Description |
---|---|---|
alpha | Int | setting |
Sets blend mode
method : public : SetBlendMode(blending:BlendMode) ~ Nil
Name | Type | Description |
---|---|---|
blending | BlendMode | blend mode |
Sets bottom position
method : public : SetBottom(y2:Int) ~ Nil
Name | Type | Description |
---|---|---|
y2 | Int | bottom position |
Sets cener position
method : public : SetCenter(x:Int, y:Int) ~ Nil
Name | Type | Description |
---|---|---|
x | Int | x-position |
y | Int | y-position |
Sets center x-position
method : public : SetCenterX(x:Int) ~ Nil
Name | Type | Description |
---|---|---|
x | Int | center x-position |
Sets center y-position
method : public : SetCenterY(y:Int) ~ Nil
Name | Type | Description |
---|---|---|
y | Int | center y-position |
Sets the color
method : public : SetColor(red:Int, green:Int, blue:Int) ~ Nil
Name | Type | Description |
---|---|---|
red | Int | red |
green | Int | green |
blue | Int | blue |
Sets left position
method : public : SetLeft(x:Int) ~ Nil
Name | Type | Description |
---|---|---|
x | Int | left position |
Sets the current x-position
method : public : SetPostion(position:Position) ~ Nil
Name | Type | Description |
---|---|---|
position | Position | new position |
Sets right position
method : public : SetRight(x2:Int) ~ Nil
Name | Type | Description |
---|---|---|
x2 | Int | right position |
Sets scaling percentage
method : public : SetScale(scale:Float) ~ Nil
Name | Type | Description |
---|---|---|
scale | Float | scaling percentage |
Sets top position
method : public : SetTop(y:Int) ~ Nil
Name | Type | Description |
---|---|---|
y | Int | top position |