Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Nublette Requires Assistance with Scripting and Puzzles
TheGreatCthulhu Offline
Member

Posts: 213
Threads: 10
Joined: Oct 2010
Reputation: 32
#12
RE: The Nublette Needs Help With Everything

@str4wberrypanic: You can read about that on the wiki.

In short, these are indicators, or "flags", or so called "magic numbers" which have specific meaning when passed to this function.

When passed as parameter to AddEntityCollideCallback(), they determine when exactly the collision event should be detected:
  • 1 means when the two entities (or an entity and an area) first intersect (collision on enter)
  • -1 means when they, or rather their bounding boxes, stop intersecting (collision on leave)
  • 0 means both

The callback itself has a similar input parameter (alState on the wiki), which you can check to see which event triggered the collision; naturally, it can only be 1 or -1.
(This post was last modified: 01-08-2013, 03:51 AM by TheGreatCthulhu.)
01-08-2013, 03:47 AM
Find


Messages In This Thread
RE: The Nublette Needs Help With Everything - by TheGreatCthulhu - 01-08-2013, 03:47 AM



Users browsing this thread: 5 Guest(s)