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.

Respawn able mobs?

Hello all,

I'm trying to make enemies that move around and when they reach the player they start battle process for an enemy i picked. then re-spawn after 30 seconds and move around again. ( So a player could exp off them )
So far i figured out how to make an enemy that moves around, but cant figure a way to make the enemy respawn after 30 seconds.

Is it possible? If so, how?

- I don't like the enemies randomly appearing system.

Thank you in advance! =)
 
You can try this and then expand upon it if you want to make a more complicated system:

---Page 1--- (trigger: Event Touch)
Blah Blah
Battle (if touched)
Make enemy disappear
Turn Switch A on

---Page 2--- (trigger: Parallel Process) (switch condition: Switch A)
Wait 600 frames (30x20=500)
Set this event's location to another random spot (optional)
Turn Switch A off


Try the above and let us know if you still have problems.
 

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