SC_AddSprite

Usage

int SC_AddSprite( int SpriteTypeNumber, int x, int z, int angle, bool centre)


Summary

Adds a sprite to the map.


More Information

- SpriteTypeNumber = the sprite type number of the sprite to add (find this using SC_GetSpriteTypeNumber)
- x, z = the ground coordinates of where to place the sprite.
- angle = the angle of the sprite (256 represents a full circle).
- centre = set to 1 to centre the sprite around the coordinates (0 aligns it to the top left).

This function returns the ID of the new sprite which was created.


Example

// add a danger sign at position 100, 100 and record the new sprite's ID
int NewSpriteId;
NewSpriteId = SC_AddSprite( SC_GetSpriteTypeNumber("DangerSign01.ini"), 100, 100, 0, 1);


Last Revised: 10 May 2008

Full Functions List


Copyright 2008 to 2009 by James Bunting
www.jbplay.com/games/rod3d/

This page was automatically generated by James' Script Docs Generator