spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

 

spacer graphic
Menu
spacer graphic Home
About
News
Features
Download AGS
spacer graphic Games 
Games main page
Award Winners
Picks of the month
Short games
Medium length games
Full length games
In Production
Hints & Tips
Community
Forums
AGSers World Map
Member websites
Chat
Resources
Tutorials
FAQ
Knowledge Base
Downloads
Links
AGS-related links
* AGS Manual
  * Scripting
    * Room functions

ReleaseViewport

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


User comments and notes
There are currently no user comments on this page.
The user comment facility is currently disabled.