| Blockland Forums > Help |
| Relay events |
| (1/2) > >> |
| jes00:
What do relay events do? |
| keesfani:
they eat your mother.. >:) |
| zenloth:
Eh, the best way I can think of describing relay is as a signal almost. If you fire a relay, you are sending a relay to whatever (direction or named brick), then on that brick you can have it do something when it receives that signal. I hope that makes sense, I'm sure someone else can explain better, but I thought I would put a basic explanation in there. |
| Glider:
Example:[33] OnActivate - Self - FireRelay [66]OnRelay - Self - PlaySound - exitWater [3000]OnRelay - Self - FireRelay Okay basically imagine you're spawning a music brick with music. When you click send, that's like your FireRelay it starts a sequence that repeats a loop of a sound. If it were events it would look something like this: OnBrickSend - Self - FireRelay [33] OnRelay - Self - Play Loop - [MusicName] Okay so say the loop is 30 seconds long the events would carry on like this: [30000] OnRelay - Self - FireRelay If you are needy of more detail just ask. The time in the square brackets is measured in MiliSeconds Thats 1000ms : 1sec. |
| zenloth:
--- Quote from: zenloth on February 24, 2010, 04:36:14 PM ---Eh, the best way I can think of describing relay is as a signal almost. If you fire a relay, you are sending a signal to whatever (direction or named brick), then on that brick you can have it do something when it receives that signal. I hope that makes sense, I'm sure someone else can explain better, but I thought I would put a basic explanation in there. --- End quote --- Lern2Re-read. |
| Navigation |
| Message Index |
| Next page |