Open harvpark opened 4 years ago
Reading the description, the scenario we're trying to solve is where when you pick up a key (triggering an event that hides it), leave the room, and return to the room--which makes the key visible again, because the scene gets reset to the original state.
Therefore, the solution we're looking for is something that tracks if an actor has been picked up (or otherwise hidden) and then hide or show it when the scene is entered again (using the On Init / "startScript" script hook).
Another use for this is things like ambushes that trigger when the player encounters the trigger (revealing previously hidden enemies or treasure).
Also trigger-once events.
When you generate sprites in GB Studio, they will just be there spawned in the room, and its not very dynamic. It would be good to do some research into figuring out how sprites could be hidden until a certain action and be triggered as an event