Author Topic: Random Events Help.  (Read 783 times)

Hello Blockland,
I would like it if someone could tell or show me how to use Random Events. I want to make a button that when you click it, it randomly sends you to one of four end points. (Also is there a way so it sends you to end points in a pattern? like player 1 clicks the button and it sends him to spot 1. Player 3 clicks the button and its sends him to spot 2 and so on.)
Please explain the solution then show an event line. =)

Is this button JVS or a normal brick?

I think i am going to make it a brick. But wouldn't they be the same except the JVS button would have a lot of events before the random events?


noedit: Lets say these are the events

0 onActivate>Self>Setcolor>Red

1 onActivate>Self>Setcolor>Blue

2 onActivate>Self>Setcolor>Green

3 onActivate>Self>Setcolor>Yellow

Make another event that will say

4 onActivate>self>shift event enable |0 1 2 3|

Should work

Code: [Select]
onActivate>Self>setColor>Red
onActivate>Self>spawnExplosion>Rocket (Scale)
onActivate>Self>playSound>pongScore.wav
onActivate>Self>setEmitter>Alarm Emote
onActivate>self>shift event enable |0 1 2 3|