SetViewMode
This function sets the view mode of a sprite. The view mode controls how the sprite reacts to camera movement.
Syntax
- SetViewMode(number viewmode)
Parameters
- viewmode: the new view mode to set. This can be one of the following values:
- 0: Billboard (faces the camera).
- 1: Face X axis.
- 2: Face Y axis.
- 3: Face Z axis.
- 4: Rotate around X axis.
- 5: Rotate around Y axis.
- 6: Rotate around Z axis.