Things i see a lot is how people use channel. And the mistake is that when they are
making a channel and they’re using it to active something or cause a chain
reaction. They don’t make the second channel related to the first one. So when they
make more and more they can’t figure out which one goes where. To where they
then have to go through all of their devices and figure out which one goes where.
example
-Let’s say you are making a new game. So you decided to create a coin system or a
power up system. So you grab you devices and do all the coding. While you code
you start making channels but you don’t write down what each one is or what each
one does. Instead you just put them wherever.
See anything wrong in example 1? Well it’s that (the said coder.) doesn’t put
anything down to remember that for each channel name it goes to something.
Instead they just did what ever.
problem
Now that they have a good game going from all the testing they have found a bug
in the system. Where when he assigned the player to always respawn if they have a
certain item. But when he respawns he automatically switches to spectators.
Now there is a problem and you have 2 choices. 1 you restart the code and just do
it again. Or 2 you look thorough all the codes until you figure out which one is for
which. So that’s why i am making this to show/tell you how to use channels the
proper way. And show you how to use proper device placing when you making certain things.
using channels
When using channel’s it can be complicated when you make one and try to figure
out how to run it to a different device while having that same channel run the code
for 2 other ones. Well here’s the steps.
- When making a channel you want to know what the channel is for and where it will respond/correlate to.
As you make the channel and move on to where the channel will transmit/have
another device receive it. Make sure the second channel you’re gonna create
relates to the first channel. So that when you go back to fix a bug or mistake you
know which channel goes where and how to fix it. And if you don’t know what
channel goes where but it’s similar to the ones you made for that piece of coding. That why you it wrote down.
So that tells you/shows you how to use channels properly. (If you don’t like wires,
or you just like channels in general). Now let’s go on to how to place your devices properly.
device placement
When placing your device you need to know which one goes where and which one
is for what. (Yes there is wires but this is for people who don’t like using it/doesn’t
know how to use them). When you are making parts and systems in your game you
want certain parts in certain areas. Like one area for the respawn system and the
other one for the shop etc. these pictures show you what i mean.
So when ever you need to fix something then go to where the section of the code is
that needs to be fixed. (I also recommend you label the section with the text device until your finish).
And that’s some of the mistakes people make when they code. (Not to be mean or
to call anyone out. Just making an understanding on how to use it, and what to do
and not to do! If i missed anything or made an error please tell me! I love and
respect everyone so please don’t feel hurt or offended by this post!)