Lingo Dictionary > L-N > nudge

 

nudge

Syntax

sprite(whichQTVRSprite).nudge(#direction )
nudge(sprite whichQTVRSprite, #direction)

Description

QuickTime VR command; nudges the view perspective of the specified QuickTime VR sprite in the direction specified by #direction. Possible values for #direction are #down, #downLeft, #downRight, #left, #right, #up, #upLeft, and #upRight. Nudging to the right causes the image of the sprite to move to the left.

The nudge command has no return value.

Example

This handler causes the perspective of the QTVR sprite to move to the left as long as the mouse is held down on the sprite.

on mouseDown me
	repeat while the stillDown
		sprite(1).nudge(#left)
	end repeat
end