C3DSprite::SetPosition

Top  Previous  Next

Syntax:

 

SetPosition(float  x, float  y)

 

Purpose:

Sets the position of the sprite.

 

Parameters:

x, y - The new position of the sprite, in screen space.

 

Returned value(s):

None.

 

Application:

VECTOR2 v
v = sprite.GetPosition()
sprite.SetPosition(v.x + 1, v.y -2)

 

Class Hierarchy

C3DSprite

 

See Also:

GetPosition