Author Topic: Something neat I found with wrench events  (Read 3952 times)

OnPlayerTouch fires about once every 250 milliseconds, so if you have an ontouch event that has a higher delay than that, multiple instances of that event will queue up before the first one hits. 

I didn't understand a thing you just said.

I didn't understand a thing you just said.


OnPlayerTouch fires about once every 250 milliseconds, so if you have an ontouch event that has a higher delay than that, multiple instances of that event will queue up before the first one hits. 

=
Quote
The onplayertouch event is checked every 250 milliseconds. If you have two of these events (one with a higher delay, and one with none) the delayed event's effect will be multiplied and happen before the nondelayed event.

I think thats It.  :cookieMonster:

The game checks for onPlayerTouch events every 250 ms, so if you have an event with a delay of 300 ms, it's entirely possible for onPlayerTouch to affect your player twice and trigger the event twice.