Author Topic: Onplayerleavebrick  (Read 704 times)

A new event, whena player leaves the brick, it triggers the events.
Heres an example.


OnPlayertouch>Self>SetColor>Red
OnplayerLeavebrick>Self>Setcolor>Black

So when the player is on the brick, it is red, when he leaves thebrick(steps off it) it goes to black.

It should be Onnocollisionplayer :3


Is possible without this

Involves relays


how?
Others, including Badspot, have explained it multiple times.
However it only works if all players leave the brick, and the onplayertouch events will only affect the first one on the brick, who is still touching the brick.

If you really need an OnPlayerLeaveBrick, get the zone events, and make a center box with the number being 0.1, then use onPlayerLeaveZone.

how?
A relay always sets it black but when your on it it sets it to red

Others, including Badspot, have explained it multiple times.
However it only works if all players leave the brick, and the onplayertouch events will only affect the first one on the brick, who is still touching the brick.

If you really need an OnPlayerLeaveBrick, get the zone events, and make a center box with the number being 0.1, then use onPlayerLeaveZone.
Ah hah.

See, we already have something.

Well, I was thinking about this when I saw one of those floors that when you walk on it it lights up, but couldnt figure out how to do it, so I thought if I had this it would be much easier.

[ 0 ] onPlayerTouch -> Self -> cancelEvents
[ 0 ] onPlayerTouch -> Self -> setColor [Red]
[400] onPlayerTouch -> Self -> setColor [Black]