Author Topic: Can someone explain to me, Relay Events?  (Read 515 times)

I need help understanding Relay Events, I know, but I'm not that good at eventing.

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.

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.

Thanks. But is there such thing as Advanced relays?


Harder-to-do Relay events... More advanced Relay events.

Relays arent really complex atall, they just in essence activate other events.

Yup, nothing "Hard" about these, maybe other events, though. I have no clue how to use doSub...

This paired with radiusimpulse makes for fun times.  :cookieMonster:

That's what I did for a generator-type thingy gone bad!