Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

dave

How are in-game events stored and triggered?

This topic is 5198 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i want to move onto the basic kinda "walk up to a sliding door and it opens stage of my engine and kinda need feedback on the trademark methods so i know where to start. regards, ace

Share this post


Link to post
Share on other sites
Advertisement
Two of the most simple methods are:

1) The door checks if the player is within a certain distance. If they are, open, if not, close

2) The door is linked to some kind of trigger plane (set up in an editor or similar), and when the player crosses this place, the door opens. When he crosses it again, the dor closes

Spree

[edited by - SpreeTree on April 22, 2004 7:17:17 PM]

Share this post


Link to post
Share on other sites
of course, you need to register the Door as an object that needs some fashion of regular "checking" to check if the player is within range for it to slide open of shut. I would suggest creating a kind of central registry that you can register any object and have it get "checked" every frame or whatever time increment you want ( and whatever it does when it gets checked is up to the object)

Share this post


Link to post
Share on other sites
Generally, the level designer will place "trigger" objects in the level. When the player collides with the trigger, it causes the game to run a script or something.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!