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
    * Object functions and properties

GetAtScreenXY (object)

(Formerly known as global function GetObjectAt, which is now obsolete)

static GameObject* Object.GetAtScreenXY(int x, int y)
Checks if there is a room object at SCREEN co-ordinates (X,Y). Returns the object if there is, or null if there is not.

See the description of GetLocationName for more on screen co-ordinates.

Example:

if (Object.GetAtScreenXY(211,145) == oRock) {
  // code here
}
will execute the code only if object oRock is on the screen coordinates 211,145.

See Also: Hotspot.GetAtScreenXY, Game.GetLocationName


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