Original Post
I have been doing some design lately on a 2D game editor and I have stumbled one important part of the editor where I have no knowledge whasoever about and that's scripting. Now The way things are is that I am trying to hard code only the necessary parts that will not change during the game such as the 2D renderer and the Music player and stuff like that. I wanted to make up a "script editor" in which I could soft code the some of the game logics that could change during gameplay such as the the enemies behaviour/AI, Level events triggered by certain situtions such as a ship touching a bonus capsule giving it the bonus, changing the scrolling speed on the spot using events and stuff like that. I want these to be changeable through scripting in a way that I don't have to hard code recompile every time I make a single change to the game. I know about some scripting languages used by many of you such as Lua and Ruby and maybe Python but I think it's more than a scripting language. Now what I want to know about this is what kind of questions should I ask myself about what would be more "appropriate" for me. I do think any of them will serve my purpose right but my biggest concern is how it will work with the hard-coded program. How am I suposed to set it up so that my engine interprets the scripting languages to get it to affect the elements in the game I want to modify. The way I see things right now is that I will have to find a way to get the scripting language interpreter to run as a part of the engine. It will have to be able to load the script files made with the editor and run them at runtime without a need of recompilation if I was to change a simple value in one of the scripts. I don't know if my information is correct, partially correct or completely off track but I'm am looking for a little starting info so that I can start reading and working on the subject as fast as possible. This seems really exciting and powerful. By any means, if you can guide me on the actual process of such an idea and what book/tutorial/website I should look up on this subject, I would really appreciate it. Thank you very much for your time and replies [grin] [Edited by - Avenyr on August 6, 2005 1:03:53 AM]