• Advertisement
Sign in to follow this  

Beginning Scripting

This topic is 2345 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 want to start learning about scripting. How and where it is used? But I don't know where to begin, maybe some of you can point me in the right directions. FYI, I know how to program games, and currently working on a 2D side scrolling game. On a side note can I use scripting in 2D games???
[img]http://public.gamedev.net/public/style_emoticons/default/mellow.gif[/img]

Share this post


Link to post
Share on other sites
Advertisement
You can use scripting everywhere, apart from really low level stuff. Personally, I got started with scripting when I noticed that I was doing a lot of repetitive tasks and wished for an easier way to do them. For example, I needed to create a spritesheet for my game with 64 different rotations of a sprite. Rather than manually rotating each frame, I installed Python and used PIL to do it for me.

Share this post


Link to post
Share on other sites
[quote name='Storyyeller' timestamp='1313775882' post='4851298']
You can use scripting everywhere, apart from really low level stuff. Personally, I got started with scripting when I noticed that I was doing a lot of repetitive tasks and wished for an easier way to do them. For example, I needed to create a spritesheet for my game with 64 different rotations of a sprite. Rather than manually rotating each frame, I installed Python and used PIL to do it for me.
[/quote]


Oh!! Could you tell me where I should start learning scripting

Share this post


Link to post
Share on other sites
Scripting is just programming. Just pick a language and run through the docs for it. For example, Lua has the [url="http://www.lua.org/manual/5.1/"]reference manual[/url] as a good place to start, and the first edition of [url="http://www.lua.org/pil/"]Programming in Lua[/url] is available as well. For Python, you've got [url="http://python.org/doc/"]extensive docs[/url] including references, tutorials, how-tos, etc... AngelScript, too, has an online [url="http://www.angelcode.com/angelscript/sdk/docs/manual/index.html"]manual[/url]. Pretty much any halfway usable language is going to have documentation and reference that describes the syntax and basic usage of the language. After that, it's just a matter of practice.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement