Page 1 of 1

Colishion Timer

PostPosted: Sat Aug 09, 2008 11:31 am
by paperboy321
how do i make it where it counts how many times it colides like timer

Re: Colishion Timer

PostPosted: Sat Aug 09, 2008 12:24 pm
by Thanx
Well timers aren't for counting how many times an action happened... Those trigger timed events, nothing else....
Here's how to count how many times an actor has collided with other actors:

all you need, is the script editor. Create a variable. I'll call it colisioncount.
Now write this in the script editor, for code:
colisioncount ++;
That's all. If you want to reset it, just do this:
colisioncount = 0;
If for some reason the colisioncount ++; method wouldn't work, cause it starts off with a number other than 0, then in the Create Actor event use the colisioncount = 0;

That's all you need to do! :wink:

Re: Colishion Timer

PostPosted: Sat Aug 09, 2008 12:28 pm
by Thanx
Ooh, ya, and the
colisioncount ++; script goes into the Collision event (any side, any actor, or specify the actor it should count the colisions with, or how many times it hit a side of the actor)