With Diamond Rush just out I decided to make a guide on how to make a Lucky/Chance block like the one in Mario and Diamond Rush.
Here’s what we are making
Here is the materials list
Materials
- 1x Zone
- 2x Barrier
- 1x Text
- 2x Trigger
- 1x Wire Repeater
- 1x Vending Machine(optional)
Note: All of the triggers in this guide have Visibility off and Trigger By Collision off.
Now onto the guide
Creating the Chance/Lucky Block
First you will need a square gray barrier (R 171, G 172, B 160) with Alpha set to 1.00
Next you need to copy the gray barrier and place the copy on top of the original and set its color to yellow (R 228, G 245, B 0)
Then get a text device and set its text to ?, with the font being Galindo, the color white, and the outline color to black. Then place the text on top of the two barriers
Make sure the text is on top, the yellow barrier in the middle, and the gray barrier on the bottom.
Placing the devices
First place down a zone just below the barriers
If you are making this in top down
If you are making this in topdown, you will what to make the zone surround the barriers instead of it just being below it
Next place down a trigger to the left of the barriers, we will call this trigger 1
Then place a trigger above the barriers, we will call this trigger 2. Give trigger 2 a delay for as long as you want the Chance/Lucky block cooldown to be, in this example I use 10 seconds.
Finally place a wire repeater over trigger 1
Wiring it all together
First wire the zone to trigger 1 and make it so that when player enters zone, the trigger will trigger
Now inside trigger 1, go to blocks and create a new block, and inside this block add this code
Now this is will make it so that when the player jumps into the Chance/Lucky block it will randomly give a effect. In this example I have a total of 2 effects, so I put 2 for the second number, but you would replace 2 with the number of different effects that you have.
Next wire trigger 1 to the wire repeater and make it so that when trigger 1 triggers, it sends a signal to to the wire repeater. Then wire the wire repeater back to trigger 1 and make it so that when the wire repeater receives a signal, it deactivates trigger 1.
Next, wire trigger 1 to the yellow barrier, so that when trigger 1 is triggered, it deactivates the yellow barrier.
Then wire trigger one to trigger two so that when trigger one is triggered, it triggers trigger two.(That’s a lot of triggers)
Now, wire trigger two to the yellow barrier so that when trigger one is triggered, it activates the yellow barrier.
Now finally wire trigger two to trigger one so that when trigger two is triggered, it activates trigger one.
And that’s it your Chance/Lucky block should look something like this
(Optional) making it play a noise
There is one more thing you can add if you want to, making it play a noise
First place down a vending machine, and make it not visible in game, grant nothing on purchase, and require 0 of any item to purchase.
Next place somewhere where nobody can accidentally stumble across it. Then go inside its
settings and make it so that it attempts to purchase when it receives a signal on the channel “Play Sound”
Finally, go into trigger ones settings and make it so that when it is triggered, it transmits on the channel “Play Sound”
This will make it so that when the player activates the Lucky/Chance block, it will make a cha-ching sound
Thanks for reading this guide, I hope this is of use to you and let me know if there is any problems because this is my first guide.
- 1/10
- 2/10
- 3/10
- 4/10
- 5/10
- 6/10
- 7/10
- 8/10
- 9/10
- 10/10
- 1/10
- 2/10
- 3/10
- 4/10
- 5/10
- 6/10
- 7/10
- 8/10
- 9/10
- 10/10