(04-23-2013, 04:05 PM)Mr Credits Wrote:
I *believe* this is your problem. During a collision, the "state" is either 1 or -1, entering and exiting, respectively. When setting up the callback, you can also set alState to have a value of 0, which basically means it will call the function in either state (entering/exiting). I don't think it means that alState is passed as 0 during the collision.
Basically, your if statement is saying "only do this if the player is both entering and exiting." You see the problem with that, right?
Try changing it to this:
Yeah, I did note how on the wiki, 0 is defined as both entering and exiting, however, I could be misinterpreting it, as could JAP because he said to change it to zero.
I will try later tonight