Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appearing and Disappearing Sprites #86

Open
harvpark opened this issue Jul 17, 2020 · 3 comments
Open

Appearing and Disappearing Sprites #86

harvpark opened this issue Jul 17, 2020 · 3 comments

Comments

@harvpark
Copy link
Collaborator

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
Copy link
Owner

ikarth commented Jul 28, 2020

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
Copy link
Owner

ikarth commented Jul 28, 2020

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

@ikarth
Copy link
Owner

ikarth commented Jul 28, 2020

Also trigger-once events.

@harvpark harvpark closed this as completed Aug 6, 2020
@harvpark harvpark reopened this Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants