locH

Usage

-- Lingo syntax
spriteObjRef.locH

// JavaScript syntax
spriteObjRef.locH;

Description

Sprite property; indicates the horizontal position of a sprite's registration point. Read/write.

Sprite coordinates are relative to the upper left corner of the Stage.

To make the value last beyond the current sprite, make the sprite a scripted sprite.

Example

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

-- Lingo syntax
sprite(15).locH = _mouse.mouseH

// JavaScript syntax
sprite(15).locH = _mouse.mouseH;

See also

bottom, height, left, locV, point(), right, Sprite, top, updateStage()