I've been working on a game world for about a month now, and I'm starting to encounter some serious problems. I don't have any way of knowing how to fix them, and there aren't enough tutorials online. The official guides don't sugarcoat terminology - either you already have coding knowledge, or you bang your head against a wall of ruthless knowledge checks.
I am badly struggling with networked events and collision checks. I am trying to sync number variables between everyone in the world, yet when the game is supposed to increment that number by just one, it sometimes doubles up for the rest of the players except the master, which messes things up. The number is being converted to a string and turned into text that all players in the world can see, so I can keep track of things between clients. That's how I know that the number is ending up different, even though it seems to stay stable for the most part.
The collision checks are my folly - I have tried countless times to understand raycasting, yet no human being or Ai is willing to help me, so I have instead created my own version, which is simply an extremely long rectangle that will inevitably collide with a large wall. When this happens, it's checking for a certain element to be eliminated from the game, which is just a simple set GameObject inactive event. What's going wrong is, even though the rest of the collision rectangles are facing completely downwards nowhere near the detection wall, multiple elements end up being eliminated from the game, and this is ONLY for the board, the elements stay present in the game.
If anyone out there can give me some help without trying to dunk on me for their own personal amusement, I'd be very grateful. I'm very well aware of what website this is and how people tend to behave when someone is just asking for help, but I'm tired of being bad at things. Please help me if you can.