Lingo Dictionary > T-Z > updateFrame |
![]() ![]() ![]() |
updateFrame
Syntax
updateFrame
Description
Command; during Score generation only, enters the changes to the current frame that have been made during Score recording and moves to the next frame. Any objects that were already in the frame when the update session started remain in the frame. You must issue an updateFrame
command for each frame that you are updating.
Example
When used in the following handler, the updateFrame
command enters the changes that have been made to the current frame and moves to the next frame each time Lingo reaches the end of the repeat loop. The number of frames is determined by the argument numberOfFrames
.
on animBall numberOfFrames beginRecording horizontal = 0 vertical = 300 repeat with i = 1 to numberOfFrames go to frame i sprite(20).memberNum = member("Ball").number sprite(20).locH = horizontal sprite(20).locV = vertical sprite(20).type = 1 sprite(20).foreColor = 255 horizontal = horizontal + 3 vertical = vertical + 2 updateFrame end repeat endRecording end
See also
beginRecording
, endRecording, scriptNum, tweened
![]() ![]() ![]() |