Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Reapearing item?

Is it posible for when the player takes an item out of a chest or picks it up, after let's say 1 minute it reapears. I tried this with a conditinal branch saying something like this:
If <600 secs Then reapear item with a switch bla bla//
If anyone knows how to do this please tell me!
Thanks!
Toasty Media
 
You can do this two ways, by timer or by the Wait command.

Both methods are somewhat similar. After opening the chest and doing all those event commands, use "Control Self-Switch: A is On." Now create a New Page on Parallel Processing with the Condition that self-switch A is On. Set an open chest graphic, and then use the "Wait: x frames" command. After the desired amount of frames, you can put a message saying the chest has been refilled (optional) and have a "Control Self-Switch: A is Off". This will make the event go back to the first page and enable the player to open the chest again for an item.

If you want to do the timer method, simply have a "Start Timer: 60 seconds" on the first page after all the commands, and on the second page use a Conditional Branch checking if the Timer is 0 seconds or less.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top