Making picture disappear with button press

● ARCHIVED · READ-ONLY
Started by Crimsonsquall 6 posts View original ↗
  1. Hi everyone,

    I'm pretty new, and have been trying to figure out how to do this for awhile now. I'm sure it's simple, but the solution has thus far eluded me. I have an event that is activated with a button press, and then I show a picture. I want the picture to disappear with another button press, so people can have it up there for as long (or as short) a time as they want.

    As it is now, I have the picture showing for 800 frames, and then the event moving forward, which works, but is not ideal. Is there a way I can have the event unfold exactly the same way, but instead of waiting, have the picture disappear with a button press?

    Thank you so much for any advice!

    event.JPG
  2. Try taking out the wait 800 frames, and in it's place put an empty text box. Set the background to transparent. Then all that will show is the small triangle at the bottom of the text message, prompting the player to push a key.
  3. This is such an elegant solution...I can't thank you enough. It's perfect for what I'm doing. I'd be curious if there are any other ways, just for anyone else looking.
    Thank you!
  4. If you're curious for other ways:

    If the player isn't able to move in between, another solution would be to replace the wait:800 with turning on a self switch, and move the remaining commands to another event page conditioned by that self switch and triggered by the action button.
    Thus the next time the player clicks the action button, the picture disappears and the rest of the event plays.

    Or if the player would be allowed to move, turn on a switch that conditions a parallel common event, where the common event has a Conditional Branch checking if the action button was pressed. If so, it does the rest of the event.

    However, I prefer mlogan's solution much more than those two methods because it's simpler and gives the player an indication that the game is waiting for their input. This was just to satisfy your curiosity.
  5. Aloe Guvner said:
    If you're curious for other ways:

    If the player isn't able to move in between, another solution would be to replace the wait:800 with turning on a self switch, and move the remaining commands to another event page conditioned by that self switch and triggered by the action button.
    Thus the next time the player clicks the action button, the picture disappears and the rest of the event plays.

    Or if the player would be allowed to move, turn on a switch that conditions a parallel common event, where the common event has a Conditional Branch checking if the action button was pressed. If so, it does the rest of the event.

    However, I prefer mlogan's solution much more than those two methods because it's simpler and gives the player an indication that the game is waiting for their input. This was just to satisfy your curiosity.

    Awesome, that is really helpful. I appreciate all the expertise!
  6. mlogan said:
    Try taking out the wait 800 frames, and in it's place put an empty text box. Set the background to transparent. Then all that will show is the small triangle at the bottom of the text message, prompting the player to push a key.

    This is such an elegant solution...I can't thank you enough. It's perfect for what I'm doing. I'd be curious if there are any other ways, just for anyone else looking.
    Thank you!