Welcome to my 2nd guide!
This time, I completed it before I posted! [1]
Why did I create this?
I created this because, well, for one, there hasn’t been a guide on it yet. Two, I thought it would make a good guide for people that wanted to create a system where there are individual bushes that appear and reappear when you go near them. Kinda like Brawl Stars.
Read more on post #13
How does it work?
This is done with the coordinate device. It gets your current position and finds the blocks below, above, to the side, and in the corners of you. Then, it transmits on channels to disappear and reappear the bushes. It works anywhere on the map!
Warning(s):
Other things to note…
-
This can possibly take up to 10% memory depending on how many bushes you need.
-
The code is pretty simple, not much to it.
-
The most annoying part will be copy-pasting the barriers and correctly channeling them/naming them. [4]
-
Any channels or properties can be renamed to whatever you want.
-
If you are a picture person, this guide will be easy to understand! If you are a text/reader person, this guide will also be easy to understand!
-
If I do not screenshot or say something about a certain setting, that means to leave it on default.
-
Any LAG you may encounter is nothing that I can fix. The game is just loading too many barriers at once.
When you are done, the devices will look like this...
Steps...
Step
First, place a coordinate device with the following settings…
Player Pos Changes >>> Transmit on "Coor-Change"
Update Property >>> "On"
X Pos Property >>> "X-Pos"
Y Pos Property >>> "Y-Pos"
Step
Place two properties. The following settings should be in each one…
Name of Properties >>> "X-Pos" and "Y-Pos"
Property Type >>> "Number"
Default Value >>> 0
Property Scope >>> "Player"
Step
Place a relay with the following settings… [5]
Relay Audience >>> "All Players"
Relay channel >>> "Coor-Overlay"
Relay when receiving on >>> "Coor-Change"
Step
Place an overlay with the following settings… [6]
Overlay Type >>> "Text"
Overlay Position >>> Your preference, I put it on "Bottom_Left"
Visible on Game Start >>> "Yes"
Content Scope >>> "Player"
Some Code…
Here is a screenshot if the code you need to put on here…
It should look like this: [7]
Step
Place a trigger down. The only thing you need to change is this:
Trigger when receiving on >>> "Coor-Change"
Put this in the blocks: [8]
Step
In the editing options, the show grid should be “On”
Make a barrier as small as one of the squares. Apply these settings to it.
Note: The random numbers is the coordinate of the barrier. Make sure to put it together with no spaces.
Now, do that a bunch of times and you get this!
WARNING: PUTTING A BUNCH OF BARRIERS TOGETHER LIKE THIS CREATES LAG. NOT RECOMMENDED
Done!
It should work now if you walk into it.
- Awesome! []
- Good []
- Ok… []
- Bad []
- Super Bad []
If you want to create this on a MUCH SMALLER scale, use zones to detect when you go in and out of an area. ↩︎
Use Command + C, and Command + V if you are on a mac. Also, for props and devices, you use C to copy. The ctrl and Command part of it is for the code. ↩︎
No dropdowns, or “Hidden details to hide the steps.” ↩︎
Naming them is optional. ↩︎
The relay is used to make sure that everyone’s overlay gets updated. ↩︎
The overlay is used to make sure where to put the barriers later on, and what to name the channel. It is EXTREAMLY important. ↩︎
If you want to know how I included spaces, include them in your code. ↩︎
The channel it should broadcast on is basically the X and Y put together. (e.g. 175620) ↩︎