Sprite
Sprites are 'normal' Objects in osu. Every Picture is a Sprite. In oosbl, a Sprite is a Object providing some Methods to use.
var <name> = new Sprite(<filepath>);
No Action Methods (Means you don't see a change, they are just intern)
sprite.setPosition(<x>, <y>);
Sets the Position of the Sprite to <x> <y>
sprite.setSize(<size>);
Sets the Size of the Sprite to <size>
sprite.setTrans(<trans>);
Sets the Transparenz of the Sprite to <trans>
sprite.setLayer(<layer>);
Moves the Sprite to <layer>
sprite.setRotation(<rotation>);
Rotates the Sprite to new Angle
sprite.copy(<sprite>);
Copies all Propertys of <sprite>
to sprite. (Position, Size, Trans, Layer, Rotation)
Action Methods (Performs Changes, no Animation)
sprite.render(<ms>);
Renders the Sprite at <ms>
with all Propertys listed above
sprite.hide(<ms>);
Hides the Sprite at <ms>
Animation Methods (Always create a Animation, starting at <startms>
over a duration of <duration>
sprite.fadeIn(<startms>, <duration>);
Fades the Sprite in
sprite.fadeOut(<startms>, <duration>);
Fades the Sprite out
sprite.moveTo(<startms>, <duration>, <x>, <y>);
Moves the Sprite to <x> <y>
sprite.resize(<startms>, <duration>, <size>);
Resizes the Sprite to <size>
sprite.fade(<startms>, <duration>, <trans>);
Changes the Transparenz of the Sprite to <trans>
sprite.rotate(<startms>, <duration>, <rotation>);
Rotates the Sprite to <rotation>
sprite.addEffect(<startms>, <effect>, <loop>);
Applys the Effect <effect>
, Starting at <startms>
, Repeating <loop>
Times. See Effect for more.