God so I ran into a bug when I was working on doing the Enemy Spawn Groups. So basically when someone enters a trigger, it will tell the server to spawn the monsters associated with the group and send a response back to the clients so they can update accordingly. WELL for some reason it was sending it 3 times, which in itself was not too bad, but it slowed the game down for a split second and I couldn't figure out why and it was bugging the crap out of me.
Figured it out. It's fixed now. There was 1 line of code that had a '+' when it should have been '-'.
*sigh*
Anyways, now it works great and its solid. I guess it's good I am a bit OCD otherwise I probably would have...
Oh Snap! Lucky Find!
Enemy Spawning – Continued
Got enemy spawning working pretty good now. So when you go on a mission the server creates a dynamic room and randomly generates what map layout you want and which monsters should spawn. It then creates room variables to store all this data on the server.Once a person connects to the mission room, if they are the party leader, it checks if the monsters are in the level or not. If not, then it makes them locally and places them at the corresponding spawn points.
If they are not the leader, it makes the monsters but it sets their location based off the room variables. Since the party leader is the one who dictates the enemy logic, we don't need to receive updates about the enemies since the leader is the one who is controlling...
Planning out enemy spawning
Still working on enemy spawning. It's coming along good. It MAY be too early to state this (and I might regret it later), but things are looking REALLY promising with the system that I have in my brain. I've figured out how to store data for the monsters, as well as door locked / unlocked states, items collected states, basically anything that needs to happen in a mission and how to propagate that data to everyone who is playing the mission.Getting really close to having monsters in the game now. It MAY go a LOT smoother than what I had anticipated. Granted there has been a lot of thinking going on up until now about how to implement this.The only question remaining is how well the system performs. Like, if there is a noticeable...