Lingo Dictionary > L-N > locV |  |

locV

Syntax

    sprite(whichSprite).locV
    the locV of sprite whichSprite

Description

Sprite property; indicates the vertical position of the specified sprite's registration point. Sprite coordinates are relative to the upper left corner of the Stage.

This property can be tested and set. To make the value last beyond the current sprite, make the sprite a puppet.

Example

This statement checks whether the vertical position of sprite 9's registration point is below the bottom of the Stage and moves the sprite to the top of the Stage if it is:

    if sprite(9).locV > (the stageBottom - the stageTop) then
    	sprite(9).locV = 0
    end if

Example

This statement puts sprite 15 at the same vertical location as the mouse click:

    sprite(15).locV = the mouseV

See also

`bottom`, `height`, `left`, `locH`, `right`, `top`, `width`, `updateStage`