Captain Spazer Posted June 7, 2021 Share Posted June 7, 2021 I'm having a hard time thinking this setup out. My idea is this: There is a world where each screen is a place on a grid, and there is a variable that randomly picks a playfield for each of those screens in order to build the world. At the moment, the best I can think up in terms of a setup is having a variable for each possible room on the grid, and a variable that picks out a playfield for that room, so when the player goes to that room on that grid the roompicker variable picks a playfield, then I would need another variable I am guessing that keeps track of whether the room has been visited before so the screen remains what was picked the first time the player enters the room, but it is very variable heavy, and I have yet to figure out how the game will remember if the rooms have been visited or not. dim has_room_been_visited.s dim roompicker.c dim grid_room1.d dim grid_room2.e dim grid_room3.f dim grid_room4.g dim grid_room5.h dim grid_room6.i dim grid_room7.j dim grid_room8.k dim grid_room9.l dim grid_room10.m dim grid_room11.n dim grid_room12.o dim grid_room13.p dim grid_room14.q dim grid_room15.r I have another idea too that is a little less heavy on variables: Each time the player leaves the current room, the roompicker picks a playfield, and adds 1 to the add_new_room variable and subtracts 1 to the rooms_left_to_place variable. When the rooms_left_to_place variable reaches 0, no new rooms are placed. Still, need a way to remember if room has been visited or not so it remains static and does not randomize again. dim roompicker.a dim add_new_room.b dim rooms_left_to_place.c Any thoughts, insights or ideas? 1 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.