Hi, I have a number of “brick” prefabs in my scene (cubes with explosion script and scoretrigger scripts)
I have 4 prefabs, (all the bricks have been manually placed into my scene): bluebrick, greenbrick, redbrick & yellowbrick. Each are tagged with “brick”.
What I want to be able to do is, when the player saves (from my pause menu), it stores each brick’s position on screen and if it is destroyed or still there.
for example; if the player is playing and destroys 25/100 bricks and then saves the game, quits and reloads, the level will load and the 25/100 bricks will still be destroyed.
I have been searching for about a week and i’m just lost. Is there a way using PlayerPrefs to just save:
- the position of the bricks.
- whether it is there in scene or already been destroyed.
The latest thing I tried was using this script:
http://gamingirresponsibly.com/megabite-24-saving-and-loading
as you can see from my comment this didn’t work out lol arrrgh!
please help