Hello, it's me again. I've been working on a multiplayer game over a LAN (That works through our household's HomeGroup), And i've hit my last roadblock. If I can get this to work, all the technical coding and such will be done.
Now, the problem i've come across, is I have an actor that randomly spawns an enemy and a random time. The actors it spawns are the same actor. (So they are clones)
How would I go about saving the x, y, animpos, hp, speed, etc. Of all the clones, and loading all of these into the other game?(Preferably without lag)
One way i've found would work would be requiring making another variable for EVERY actor.variable, but this would take hundreds of variables, and a crap load of time I don't have. The end result would be extreme lag, and how would you know how many clones and when to spawn them into the other game?
Another way i've thought about doing it, would be that one computer has the whole game with three canvas' that draw from the three corresponding players, save the drawing and load it into other games the other three players have. The problems with this would be that I don't know how the canvas' work, or how to save and load the drawn items, and how the other three players would be able to control there players with keys, let alone moving each players cursor to aim their weapon.
Figuring out how to do this would up the games fun value immensely.(It's already fun, but it would be awesome to get a LAN Setup up and running.)
I have the non-random variables I need working(i.e. Player1's x and y, Player2's x and y) But it's just these enemy clones that I need help with.
Please help..