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

IsCollidingWithObject (character)

(Formerly known as AreCharObjColliding, which is now obsolete)

Character.IsCollidingWithObject(Object* obj)
Checks whether the character's feet (ie. the bottom third of the character) are touching OBJ. This can be used to determine if the character is standing on the object.

Returns 1 if they are, and 0 if they are not.

Example:

if (cEgo.IsCollidingWithObject(object[3]) == 1) {
  // colliding code here
}
will execute the colliding code only if the character EGO and the object number 3 are colliding.

See Also: Character.IsCollidingWithChar, Object.IsCollidingWithObject, AreThingsOverlapping


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