Blockland Forums > Help
Can someone explain to me, Relay Events?
(1/2) > >>
Sabbin:
I need help understanding Relay Events, I know, but I'm not that good at eventing.
zenloth:
Well... A relay is like an electrical impulse or signal in a way. If you tell a brick to fire a relay to another brick... It fires this "thing" which makes the other brick do stuff.

Example
Brick1:
On Activate> Namedbrick - Brick2> FireRelay


Brick2:
On Relay> Self> Do stuff.


I find relays useful if, for example, I am making lots of bricks do the same thing, but at different times. I will make the start brick fire a delayed relay to the bricks (at different times) and then just copy what the recieving bricks have to do. This saves making all the events in one brick and ending up with lots of events.
Dapizzanator:
Or, to make a repeat event, such as with the "rainbow car" vehicle spawn, you can do;

(0) Onactivate-self-firerelay
(0) onrelay-self-setcolor (red)
(100) onrelay-self-setcolor (orange)
(200) onrelay-self-setcolor (yellow)
(300) onrelay-self-setcolor (green)
(400) onrelay-self-setcolor (blue)
(500) onrelay-self-setcolor (purple)
(600) onrelay-self-firerelay

Make sure you get that last one in, or it will only do it once and stay at purple. The first number, the one that increases by 100, is the delay. That is also very important, or it will ALWAYS be purple, even if you include the last event.
Sabbin:
Thanks. But is there such thing as Advanced relays?
Dapizzanator:
By that you mean...?
Navigation
Message Index
Next page

Go to full version