frame is a read-only integer type variable ( I am not sure if it is a long or double or what type of integer)
from script reference
frame: Game frame count. This variable is global and read only
.
It counts the number of frames your game has gone through.
ie: starts at zero when the game starts and adds 1 every time the screen is redrawn
It can be used for counters/timers etc