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
str4wberrypanic Offline
Member

Posts: 241
Threads: 24
Joined: Jul 2012
Reputation: 8
#14
RE: The Nublette Needs Help With Everything

(01-08-2013, 03:47 AM)TheGreatCthulhu Wrote: @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.
Thank you Cthulhu, you're aways helping me. Big Grin

01-08-2013, 04:47 AM
Find


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



Users browsing this thread: 1 Guest(s)