ikarth / game-boy-rom-generator

Game Boy ROM Generator
MIT License
7 stars 0 forks source link

Appearing and Disappearing Sprites #86

Open harvpark opened 4 years ago

harvpark commented 4 years ago

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

ikarth commented 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).

ikarth commented 4 years ago

Another use for this is things like ambushes that trigger when the player encounters the trigger (revealing previously hidden enemies or treasure).

ikarth commented 4 years ago

Also trigger-once events.