ShakeScreen

void ShakeScreen(number shakeCount, [number direction])

Shakes the screen shakeCount number of times. If the direction parameter is given, it shakes the specified direction. If it is not, it shakes from left to right.

  • The direction can be one of the following values defined in SCI.SH as follows:
    ssLEFTRIGHT Shakes the screen from left to right
    ssUPDOWN Shakes the screen up and down
    ssFULL_SHAKE Shakes the screen diagonally from the top left corner to the bottom right
Example

ShakeScreen(8) /* Does a left to right shake screen eight times */

ShakeScreen(20 ssFULL_SHAKE) /* Does a complete shake screen twenty times */