Saving Clone Positions
Posted: Thu Oct 21, 2010 11:48 pm
Hi, I've been using Game Editor for a few weeks now and I am really enjoying it! The game I am designing at the moment is a survival/exploration platformer; a cross between Minecraft and Super Mario . The main mechanic of the game involves the Player Actor creating block Actors which can form a fort against a horde of zombies. One of the gimmicks is that the player can design their own fort.
The great news is that this mechanic works really nicely so far. The only difficulty I am having is when the player saves and loads the game. I would like to save the block Actors' x and y variables to the save file, but because they are clones the game only saves the variables of one of the blocks (which means all of the player's fort building work is undone as soon as they save/load the game... then they are zombie stew). Worth noting is that these clones are all created in-game, so I cannot edit their variables in the editor (as far as I can tell so far).
I am sure there is a really simple way to save the x and y variables of in-game clones, but I couldn't find it and I did try! I would be really grateful if someone could push me in the right direction. I'm sorry if this was explained in a previous topic, I did have a look but I didn't find it.
Many thanks,
Chris
The great news is that this mechanic works really nicely so far. The only difficulty I am having is when the player saves and loads the game. I would like to save the block Actors' x and y variables to the save file, but because they are clones the game only saves the variables of one of the blocks (which means all of the player's fort building work is undone as soon as they save/load the game... then they are zombie stew). Worth noting is that these clones are all created in-game, so I cannot edit their variables in the editor (as far as I can tell so far).
I am sure there is a really simple way to save the x and y variables of in-game clones, but I couldn't find it and I did try! I would be really grateful if someone could push me in the right direction. I'm sorry if this was explained in a previous topic, I did have a look but I didn't find it.
Many thanks,
Chris