ReleaseViewport ()
Releases the lock on the screen viewport, allowing it to automatically
scroll around following the player character as normal.
Example:
int x;
while (x<100) {
SetViewport(x,0);
x++;
Wait(1);
}
ReleaseViewPort();
will scroll the room 100 pixels to the right and then return the screen to its original position and unlock the screen viewport.
See Also: SetViewport
|