TIP: If you are having problems with lag, open the console (press the key that has ~ and ` on it, it's right above tab) then type in sim.timedelta=0.006
How this works:
By default, Phun checks for collisions 100 times per second (100 Hz), which is equal to a time delta of 0.003. By changing the time delta to 0.006, you are doubling the amount of time Phun waits between collision checks, giving you a check rate of 50Hz.
You do something like scene.my.spark = e.this.color or scene.my.spark=e.other.color in the oncollide script box, then, using the script menu, change the "color" value to something like {scene.my.spark}. Look at the oncollide scripts in the different parts of the switch to see how it works.
Quote from beech:
/------------------------------------------------------------------\
|"im not sure what the problem is because it works for everyone else."|
\------------------------------------------------------------------/
/--------------------------------------------------------------------\
|Quote From Sgt. Pepper...............................................................|
|--------------------------------------------------------------------|
|so do you use my idea and change it?.............................................|
|i no gave you the rights................................................................|
|0/10..........................................................................................|
|.................................................|
\--------------------------------------------------------------------/
I gave you credit:
/------------------------------------------------------\
|This scene is a response to:......................................|
|------------------------------------------------------|
|Title...............................|Author.............................|
|------------------------------------------------------|
|Elevator with Sensors........|Sgt. Pepper......................|
\------------------------------------------------------/