Reminder to all SilverCreator programmers: ALWAYS make use of the extra boolean parameter on sprite commands. For example, MOVESPRITE 1,x,y should be MOVESPRITE 1,x,y,1.
From the SC manual:
updateScreen Parameter
Explanation
This is an optional parameter available on most sprite commands. When you pass TRUE to this parameter, the runtime will suppress the next screen update.
Each use of a sprite command causes an immediate screen update, reflecting the changes caused by the command. While this makes simpler games easier to code, sometimes this is not desirable for speed or aesthetic purposes.
Examples
// When you run this code, you will see each sprite briefly
// as it is transformed by each sprite command.
CREATESPRITE 1, "rocket"
MOVESPRITE 1, 50, 50
SCALESPRITE 1, 75
TINTSPRITE 1, 35, 35, 35, 50
// When you run this code, you will only see the final
// transformed sprite. This code will also run faster.
CREATESPRITE 1, "rocket"
MOVESPRITE 1, 50, 50, TRUE
SCALESPRITE 1, 75, TRUE
TINTSPRITE 1, 35, 35, 35, 50 // we don't put TRUE here, which causes the screen to update
Related Items
None.
Forgetting to tell SC to wait to update the screen will in most cases result in terrible lag!