|
-
Aug 8th, 2005, 10:28 AM
#1
Thread Starter
Hyperactive Member
[Advantages and Disadvantages] VBScript scripting engine in a VB6 game
Has anyone else used a scripting engine in their game engine before? I have and got it working with vbscript to do the same things I did with compiled code. To try it out, I used a .txt loaded at runtime to run every tick to update the camera, essentially making an UpdateCamera() sub in VBScript and my framerate dropped from 70 to 65, 60 in some parts of the map but without it, the framerate is a constant 70. The camera code is fairly simple, 15 lines of code + finding the distance, so I decided to remove it until I can do something useful with it as the scripting engine was dropping the fps.
So, has anyone used a scripting engine in their game engine and had any success with it? And scince I have the capability, where should it be implemented?
I was thinking of perhaps using it to control the player, turning keyboard input into moving left, right, changing current animation, jumping, shooting etc, but would it be worth it to make this modifiable?
Btw, if anyone wants to know how to use a msscript control to make a fully functional scripting engine that can interact with the game engine through variables, I will post my method. And if anyone is intrested in my game engine, the technology demo is coming soon
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|