Jump to content
  • Advertisement


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


Game Scripting...what is it?

This topic is 6311 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 have seen people talk about the things they have done on a particular game. One of the things I hear mentioned quite often is that they worked on scripting. What do they mean by this? Don''t you just use your preferred language for the project and go with it? (C/C++ or whatever). Thanks in advance

Share this post

Link to post
Share on other sites
Essentially, what scripting means is that you are taking objects, events, or ideas, removing them from the game code itself, and storing them separately. You then load them while the game is running, as they are needed. For example, instead of coding an NPC''s behavior directly into the game, you could write a script to control it. So in the game, when the NPC appears, the script is loaded and interpreted, and the NPC does whatever the script tells it to.

Using scripts gives you a lot of flexibility and ease of use. Using the above example, you can change the NPC''s behavior just by editing the script. If you weren''t using scripts, you would have to recompile your project to implement the changes.

A scripting language can look like anything. It might be similar to C or C++, allowing for functions and classes. Or it might be an extremely simple ''language'' with only a few commands.


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.

GameDev.net 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!