| Blockland Forums > Help |
| onRelay |
| << < (2/2) |
| zmaster:
FireRelay[dir] is a good way of getting around naming bricks, however the bricks have to be adjacent(touching) Ex N E + W S ____ ____ | 1 | | 2 | |___| |___| ... brick 1: NAME=first 0 onActivate->self->fireRelayWest 0 onRelay->self->fireRelayWest brick 2: 500 onRelay->self->fireRelayWest 0 onRelay->self->setColor [blue ] 500 onRelay->self->setColor [white ] brick 3,4 ,5,.... see brick 2 last brick 500 onRelay->namedbrick[first]->fireRelay 0 onRelay->self->setColor [blue ] 500 onRelay->self->setColor [white ] what it does: when you click on brick 1 it makes the next brick change color to blue then back to white making it appear that a white brick was moving down the length of the brick line. Then once the "white brick" reaches the end the cycle starts over. A lot easier than naming each brick, eh? What is event better is with the firerelay[dir] you can just move the last brick down and add more middle bricks in between. so only the first and last bricks are different and only the first brick has a name. P.S. apperently [color] changes the color in the forums [red ] with no space [black ] who knew? |
| Blocki:
--- Quote from: zmaster on May 11, 2012, 11:42:32 AM ---P.S. apperently [color] changes the color in the forums [red ] with no space [black ] who knew? --- End quote --- Me Knew that you can change the color |
| Navigation |
| Message Index |
| Previous page |