Hello, I am making a game that is comprised of randomly generated 3x3 rooms, right now all you can do is wander around.
here is the link to the WIP:
http://www.stencyl.com/game/play/34043The room saving works by keeping track of the x position and y position of each room, and using "x pos;y pos" as a key for a map. the item that the key represents is a list of lists of all of the actors, their x and y coordinates, and their layer.
I achieve this through the code in the picture: when a room is created; if the map has key "x pos;y pos" get the lists from the map and create an actor for each one, otherwise; randomly generate a room and then place each actor generated in the proper lists.
The random generation is working like a dream, the only problem is that the code inside the "for each actor on screen" wrapper never runs. (I even tested this by placing the "exit game" block inside the wrapper, nothing.)
Can anybody help me with this problem?
Thanks.