Sign in to follow this  
RojanShrestha

Beginning Scripting

Recommended Posts

RojanShrestha    124
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
Storyyeller    215
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
RojanShrestha    124
[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
JTippetts    12970
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this