Author Topic: Dance floor events help.  (Read 789 times)

I while ago I made a dance floor that that was one color. But when you stepped on one of the tiles of the floor it changed color. When you stepped off of that tile it turns back to the main color of the dance floor. I remember using the player touch event and I think it used relay events. If anyone has any ideas on how I could accomplish again that be a great help.

First line:[no delay] OnPlayerTouch - Self - Color [whateveryouwant]
Second line:[delay of 100] OnPlayerTouch - Self - Color [originalcolor]
Thats how I got it to work. The plate will flash rapidly while your on it though.

The plate will flash rapidly while your on it though.

To fix the flashing just add the line:
  • OnPlayerTouch - Self - cancelevents

Huh. I didn't know that [ 0 ] changed into


Anyway i meant to put a delay of 0

First line:[no delay] OnPlayerTouch - Self - Color [whateveryouwant]
Second line:[delay of 100] OnPlayerTouch - Self - Color [originalcolor]
Thats how I got it to work. The plate will flash rapidly while your on it though.
To fix the flashing just add the line:
  • OnPlayerTouch - Self - cancelevents
Both of those don't do what I described in the op. Alyx Vance- flashing isn't switching. tredden- I thought yours was going to work but it stays the 2nd color instead of switching back.

You could use onPlayerTouchStop

[ 0 ] onPlayerTouch > self > setColor > blue
[ 0 ] onPlayerTouchStop > self > setColor > green

I would prefer a dance floor that constantly changes the color of tiles via relays, however.

You could use onPlayerTouchStop

[ 0 ] onPlayerTouch > self > setColor > blue
[ 0 ] onPlayerTouchStop > self > setColor > green

I would prefer a dance floor that constantly changes the color of tiles via relays, however.
[/quote
When did the "onPlayerTouchStop" come out?

0 onplayertouch>self>setcolor
500 onplayertouch>self>setcolor
0 onplayertouch>self>cancelevents

that should work with all defaults, if it doesn't try increasing the delay a bit to 1000