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.

Events - Autorun

I need for this badly to be solved. I know it's very easy, and i'm like on the verge of getting it correct but its just never fully correct. Question is:

How do you make like an event to happen as soon as you enter the map the event is on? So like for example, as soon as you enter a map, 2 people are there about to fight, and then they say like "Your dead" and they do an animation, and then they dissapear at the same time. It's never exactly how I want it.

Or for another example, when your about to go into a door, a guard walks in front of you and doesn't let you in until you get like permission from the king, and then he then says you can go in when you have permission, how do you do that?
 
Yea i know about autorun, im pretty experienced with everything, I just mean like when an event "sees" you about to approach something that your not allowed to have at the moment, they stop you until you retrieve something, then you can get whatever is there that there blocking.
 
Put an event in the square you don't want the player to pass (Like the square just before a door).  On that event, put a switch that will go ON as soon as you will walk on that case.  On the npc that will stop you if you don't have a specific item, put a conditional branch that will trigger if that switch is ON.  Then, set the npc to move in front of you when the switch is on, thus preventing you to pass.  Then, set another switch that will trigger a message if you don't have the item in question.  Set the switch to go ON when you have the item and then, make the npc move away if that said switch is ON. 

I know it's not really clear so if you have any question, just ask.
 

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