sprite

Parent: object

Inherits from sceneobject

Displays a sprite. A sprite is an object that looks the same no matter what direction you look at it from. Use 'texture' to specify the texture of the sprite.

files/sprites.jpg

height float
Height of the sprite

width float
Width of the sprite

mirroru boolean
Mirror the sprite horizontally. Stops the need to create two seperate sprite textures where one is the mirror of the other. Instead can just use one and set 'mirrou' to true.

mirrorv boolean
Mirror the sprite vertically.

randommirroru boolean
Randomly mirror horizontally. Useful if displaying vegetation and dont want all vegetation to be mirrored the same direction. Gives more variation.

randommirrorv boolean
Randomly mirror vertically.