Colishion Timer

Game Editor comments and discussion.

Colishion Timer

Postby paperboy321 » Sat Aug 09, 2008 11:31 am

how do i make it where it counts how many times it colides like timer
PaPeR BoY
User avatar
paperboy321
 
Posts: 67
Joined: Mon Jun 09, 2008 11:08 pm
Score: 0 Give a positive score

Re: Colishion Timer

Postby Thanx » Sat Aug 09, 2008 12:24 pm

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:
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score

Re: Colishion Timer

Postby Thanx » Sat Aug 09, 2008 12:28 pm

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)
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron