Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6571617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:54:20+00:00 2026-05-25T14:54:20+00:00

Okay, so I’ve been getting into 2D game developing/programming , and many games I’ve

  • 0

Okay, so I’ve been getting into 2D game developing/programming , and many games I’ve seen use some sort of scripting language too. So I’m wondering – What’s the purpose of using scripts in games? I know there’s not simple one reason answer, and I’ve been trying to consider all the possibilities. Here’s what I ‘think’ I know so far:

1) Scripts allow for changing the game without having to re-compile.

2) Scripts are easier for non-programmers to use.

3) Scripts allow me to separate the engine from the game itself allowing me to make other games with the same components quicker?

That’s about all I’m aware of. My next question is, if I’m going to be Dev/programming a game alone – do I really need to use scripts? Or could I prototype the game using something like python or ruby, to allow for rapid testing, then rewrite the code in C++ saving time and compiler bugs, etc?

Another thing I’m wondering, Am I better off using Ruby or Python since I’m most experienced with those? Or should I use Lua, Perl or something else if it better fits what I aim to achieve? Speaking on that matter, what really should I use scripts for? should I use them to position and model game menu UI’s, write/read save-files, load map levels, hold arrays or structures of game terminology such as “New Game” or “Quit,” all of the above, none of the above?

If I make use of scripts, won’t that allow game mechanics to be edited by the end user? Or is there a way to package the scripts into one compressed file that the engine can read?

Most basically, I’m wondering:

What should I use scripting in my game for? And why?

Do I need use scripting languages if I’m working alone or with programmers as opposed to Devs?

What scripting language ‘should’ I use if I were to be making platformers, RPGs, or what-have-you?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:54:21+00:00Added an answer on May 25, 2026 at 2:54 pm

    your top 3 reasons are all 100% correct and are the main reasons for using scripting languages along with your game engine.

    Personally I’ve only really had experience with Lua through Luabind. It’s a little tricky to setup but it was worth it. What you can do with scripting languages is expose the data structures and/or functionality that you want the ‘user’ in this case yourself, to be able to use. Generally speaking the only game mechanics etc that can be editted would be the ones you allowed them to.

    What should I use scripting in my game for? And why?
    Asset loading, exposing features/types, ie, for our game engine (written in c++), we had a base level, and then many different types of level inherriting from it, such as wave level, death match, etc. The user simply states in the script what type of level they need, and then chucks in the assets here too. In my demo we had;

    Level=”wavelevel”

    –Level Initial number of enemies

    EnemyNumbers=”3″

    –Level Total number of waves

    WaveNumbers=”4″

    –Wave coefficient

    WaveCoeff=”1.1″

    –Size of terrain

    TerrainSize=”256″

    –Terrain file

    TerrainFile=”resource/Models/mountainous.raw”

    Don’t worry too much about the numbers and all of that.

    As you can see that does some asset loading as well as determining the level type

    We also gave a lot of control for the AI to scripts, in fact, the data structures were almost completely exposed to Lua.

    Do I need use scripting languages if I’m working alone or with programmers as opposed to Devs?

    Yes no maybe? We all prefer ‘real’ coding of course. If you can make your game engine abstract enough to build completely different games just with Lua, then it means you’ve done a great job and have designed it very well.

    The other thing you have to think about, especially if you’re game engine is quite huge, and lets face it, there isn’t really going to be a small one, each time you compile, it can take minutes! It’s the linker that’s taking time here.

    What scripting language ‘should’ I use if I were to be making platformers, RPGs, or what-have-you?

    I’ve only ever used Lua, so that’s the only advice I can give here.

    Hope this is helpful info for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay, so I've been running a Java/Jersey webservice on Tomcat with basic authentication which
Okay I have been racking my brain trying to build a JSON array from
Okay, This is just for interest's sake: If for some reason, I want to
Okay, this seems like it should be relatively simple, but I've been Googling for
Okay so I am running into issues inserting a file into my database as
Okay say I have two timestamps saved in database in the format yyyymmdd, a
Okay, so, I'm doing a simple lookup. I have an array of NSString objects
Okay, my site is www.kristianbak.com . I have a css class called activebutton .
okay so i'm working with visual studio 2010. I need to read out the
Okay, so I'm trying to make a full text search in multiple columns, something

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.