Advertisement Jump to content
Sign in to follow this  

using scripts for callbacks

This topic is 3828 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

hi, I'm planning on implementing a virtual machine into my engine and was wondering what the best way to use this would be, say for instance I had a mission script that was to control all the gameplay of a certain mission/level, would it be better to give total control to the script i.e let the script run its own loop and check/handle different variables, call interfaced functions of the engine, or would it be better to implement callback functions in the script so that for e.g. when the player enters a different room the virtual machine will call a certain function in the script? I can see the pros and cons of both but how would a script such as a mission, A.I etc. normally be executed in games today?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!