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?
Tomato Cat Offline
Senior Member

Posts: 287
Threads: 2
Joined: Sep 2012
Reputation: 20
#14
RE: Make something occur upon continue?

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

RAISE YOUR DONGERS ヽ༼ຈل͜ຈ༽ノ
(This post was last modified: 04-23-2013, 04:06 PM by Tomato Cat.)
04-23-2013, 04:05 PM
Find


Messages In This Thread
RE: Make something occur upon continue? - by Tomato Cat - 04-23-2013, 04:05 PM



Users browsing this thread: 1 Guest(s)