Lingo Dictionary > D-F > deleteFrame

 

deleteFrame

Syntax

deleteFrame

Description

Command; deletes the current frame and makes the next frame the new current frame during a Score generation session only.

Example

The following handler checks whether the sprite in channel 10 of the current frame has gone past the right edge of a 640-by-480-pixel Stage and deletes the frame if it has:

on testSprite
	beginRecording
		if sprite(10).locH > 640 then deleteFrame
	endRecording
end

See also

beginRecording, endRecording, updateFrame