Author Topic: Relay Types  (Read 472 times)

Really simple, I do not have the source code for brick relays so I doubt I can do this, and besides, I think it should be default.

On a 'firerelay' event of any direction, a drop bar is available to change the type from default 'normal' to a variety of types, one two etc... however amount is reasonable and needed.

and on the recieving side, the onRelay recieves the same treatment.

as another measure, an 'All types' should be another option for the onRelay event.

- I typed out an example, might as well put it in OP

No, when I relay is sent it has a variable associated with it to get a different responce.

For example, a plate brick sends a relay to a screen.

On activate, fireRelay (Normal)
On touch, fireRelay (Type One)

for the screen.

onRelay (Normal) - Change colour red
onRelay (Type One) - Change colour blue
onRelay (Any) - spawnexplosion (Pong)

so when the plate is activated, the screen turns red and spawns a pong explosion
when the plate is stepped upon, the screen turns blue and spawns a pong explosion
« Last Edit: September 05, 2012, 01:25:11 PM by Choneis »

Perhaps:
FireInfiniteRelay
FireBiRelay(2)
OnNoRelay
OnFirstRelay
OnInfiniteRelay
?

Perhaps:
FireInfiniteRelay
FireBiRelay(2)
OnNoRelay
OnFirstRelay
OnInfiniteRelay
?

No, when I relay is sent it has a variable associated with it to get a different responce.

For example, a plate brick sends a relay to a screen.

On activate, fireRelay (Normal)
On touch, fireRelay (Type One)

for the screen.

onRelay (Normal) - Change colour red
onRelay (Type One) - Change colour blue
onRelay (Any) - spawnexplosion (Pong)

so when the plate is activated, the screen turns red and spawns a pong explosion
when the plate is stepped upon, the screen turns blue and spawns a pong explosion

It's a good idea but seems quite useless to me.

FireInfiniteRelay could actually be cool.
But no infinite crap
Do raycast in direction
Find Brix on the way
FireRelay on brix