Component for any entity that has a position on the stage.
- when the entity needs to be redrawn
Transparency of an entity. Must be a decimal value between 0.0 being fully transparent to 1.0 being fully opaque.
If the entity is visible or not. Accepts a true or false value. Can be used for optimization by setting an entities visibility to false when not needed to be drawn.
The entity will still exist and can be collided with but just won't be drawn.
- when the entity has flipped
public this .flip(String dir)
Flip entity on passed direction