Classes

Collision

Contains some useful methods for detecting whether or not a collision with an entity has occurred. Collision detection in JackyJS also factors in things like entity scaling, origin, and bounding box.

Methods (static)

Name Parameter Type Description
instanceMeetingsearches for any matching entities at position x, y. If any entities are found, they are returned in an array, else FALSE is returned. If the top parameter is set to TRUE, only the topmost matching entity is returned.
* xNumberx coordinate to check for instances.
* yNumbery coordinate to check for instances.
topBooleanif TRUE, returns the TOP entity.
instancePlacechecks to see if an instance of entity obj exists at position x, y. Returns TRUE if there is a match, FALSE if not.
* xNumberx coordinate to check for an instance.
* yNumbery coordinate to check for an instance.
* objObjectentity object to match an instance of.
instanceFreechecks to see if there are instances of ANY entities at position x, y. Returns TRUE if yes, and FALSE if not.
* xNumberx coordinate to check for instances.
* yNumbery coordinate to check for instances.