I have a game engine I am working on. It is a simple procedural level gen with platformer behaviors. Each room has 2 doors (except the first) Each room number acts as the random seed. (Using advanced random) You can go between rooms. The exit is always lowest - right room.
I am attempting to save the changes in an Array, Dict, or token and then re-apply them when you come back to a room.. this also works... Except i noticed occasionally an array entry would be missing. I tried using an Array, Dictionary, and token solution, but to no avail. They all miss the same value. This led me to believe that that issue is not with the array but with my code.
I tried making it not delete terrain until I verify the array to ensure the value exists... this is why i am so confused. I verify the array value exists but even then it is occasionally not written. I tried adding a green overlay so i can see the Terrain Changes array real time.
- left stick left and right
- Gamepad A = Jump
- Right Stick aims rock saw
- Left Gpad trigger starts saw
Sorry.. right now all I have is gamepad support. and i hope the jump is high enough to get around. I took a lot out of the game to attach this.
Hoping someone know what i messed up?
***There is a section call "Rock Saw" that handles the level destruction and storing of arrays, dicts, and tokens
DROP BOX TO c3p