Executing Scripts

Started by
1 comment, last by JoHnOnIzEr 20 years, 8 months ago
For the execution of scripts in my main loop, such as AI scripts, how can i get them to work over several frames or whatever, to constantly do stuff till it is stopped by something else. Im gonna use windows scripting host with VBScript as my language and im just gonna add more stuff to it EDIT: Or is windowsscripthost too slow for a game thats gonna go multiplayer [edited by - JoHnOnIzEr on July 26, 2003 1:06:57 AM]
Sidra Headquarters
Game engine is currently at version 0.9.8! Currently Down
Advertisement
LUA has a system that allows a script execute over multiple frames. If the scripting language you are using doesn''t have that ability, then you must implement the ability for a script to pause, save its state, and wait to be resumed.
John BoltonLocomotive Games (THQ)Current Project: Destroy All Humans (Wii). IN STORES NOW!
I'm usin VB, so i gotta do it on my own?

EDIT: How about like making two loops run at once the game loop and another one that loops through the scripts?

[edited by - JoHnOnIzEr on July 26, 2003 7:17:18 PM]
Sidra Headquarters
Game engine is currently at version 0.9.8! Currently Down

This topic is closed to new replies.

Advertisement