GetSpriteYFromWorld

Description

Converts a point in world coordinates to a point on the sprite. This is the opposite of GetWorldYFromSprite and will return values relative to the sprite's center point defined with SetSpriteOffset. By default this is the center of the sprite. The command is not limited by the size of the sprite, it may return values larger than the sprite bounds.

Definition

float GetSpriteYFromWorld( iSpriteIndex, x, y )

Parameters