| Blockland Forums > Help |
| Need event help |
| (1/2) > >> |
| Kaktus:
I've been battling with this for a long time but I don't just get the event stuff. I want a block that turns yellow when activated and when activated again turns red etc etc etc. I also want to know how to do similar things like this, when pressed two times different stuff happens. Is this even possible? I think this has something to do with the fireRelay stuff but I want someone to make this REALLY clear to me. Believe me, I've tried googling and searching but I can't find a simple guide for the event (and especially Relay) stuff. I think I handle the basic stuff OK but this is really a pickle. What does "relay" mean? I may sound like a total handicap but I didn't get it from the other threads. |
| Kill All:
0 | OnActivate-Self-SetColor-Red 1 O OnActivate-Self-SetColor-Yellow 2 | OnActivate-Self-ToggleEventEnabled-0 1 | = enabled O = Disabled |
| Kill All:
--- Quote from: Kill All on February 27, 2012, 12:17:40 PM ---0 | OnActivate-Self-SetColor-Red 1 O OnActivate-Self-SetColor-Yellow 2 O OnActivate-Self-SetColor-Blue 3 | OnActivate-Self-ToggleEventEnabled-0 1 3 4 4 O OnActivate-Self-ToggleEventEnabled-1 2 4 5 5 O OnActivate-Self-ToggleEventEnabled-0 2 3 5 | = enabled O = Disabled --- End quote --- to add on etc. |
| Kaktus:
Worked, thanks a lot! I see this had nothing to do with relays :D |
| Blocki:
You asked what relay means so ima try to explain it Basically, when you do the output event fireRelay it simply triggers onRelay. Thats all. So 0 | onActivate - Self - fireRelay 1 | onRelay - Self - fireRelay 2 | onRelay - Self - spawnProjectile [rocket, 0 0 100, 0 0 0] will keep shooting rockets in the sky after you clicked it. You can also fire relay in certain directions (North, South, East, West...). That will trigger the event onRelay on a brick that is next to the first brick in a certain direction. You can also do this event Brick1 0 | onActivate - NamedBrick [Brick2] - fireRelay Brick2 0 | onRelay - Self - setColor That will turn Brick2 red after clicking Brick1. |
| Navigation |
| Message Index |
| Next page |