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
Script Help Make something occur upon continue?
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#15
RE: Make something occur upon continue?

(04-23-2013, 04:05 PM)Mr Credits Wrote:
PHP Code: (Select All)
if(alState) == 0

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:
PHP Code: (Select All)
if(alState == 1

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 Smile

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 04-23-2013, 10:21 PM by Romulator.)
04-23-2013, 10:20 PM
Find


Messages In This Thread
RE: Make something occur upon continue? - by Romulator - 04-23-2013, 10:20 PM



Users browsing this thread: 1 Guest(s)