-
Your shopping cart is empty!
Skyline uses the industry standard Lua with most of the standard lua features available. On top of this Skyline ships with a large set of interface libraries providing script access to many of Skylines core features to enable you to leaver the most out of the toolset.
I am not a scripter and never really got my head around code.
"I am not a scripter and never really got my head around code." We hear this quite often as many people we have met are art driven, but being just an artist in todays game development environment can slow you down with seeing your ideas come to life. We developed Skyline to be as artist driven as possible as we don't want to spend ages scripting, but there are time when you just can not get away without some code!
This is where I see you run away screaming you won't get me coding!
This is where I see you run away screaming you won't get me coding!

with me on this as I will show you that scripting is not that intimidating as you may think. There are many people who would love you to think they are gods of code and hide behind terminology and complicated line of numbers and symbols that looks like some form of techno voodoo. Yes there are some real geniuses of code but to make you game you don't need to be one. Heres an analogy for you; You can ride a bike, maybe even ride off road but there are some crazy people who can ride to extreme levels making huge jumps and somersaults or riding down mountains, yet you can still ride a bike!
Ah I see you are still here with me. Ok I will be very gentle with you and introduce some of the basic things you will need to know. Dont worry about remembering these as you will see them so many times that they will become second nature, but the first time you see them you will just want to flee.
Syntax: the scripts punctuation, but way easier that your distant memories of school days past and run ins with the English teacher and grammar. Lua has some of the most relaxed punctuation of the scripting languages so if a terminator is forgotten you will not be punished. Note that the terminator is a character that denotes the end of a line of script not some type of metal Arnie crazy machine.
EG: physics.setMass(100);
see the ";" semicolon on the end, this is a line terminator.Also while we are here lets look at that command
Command: The scripts instruction to Skyline. A command is the this we use to tell Skyline and Lua to do something. So on closer inspection the command is made up of three parts; the library, the actual command and the value. The dot between the library and the command is for a better word, a lua separator.
Library . Command( Value )
physics . setMass(100);
One last this to mention is that not all commands can use a value this is relevant to each specific command and what the command does. Some commands just have empty parentheses ( ) but you must always add the command parentheses or the script will not work. Dont worry about remembering what commands do what you can reference the Skyline API for this information but we will look at this later.
One last thing to mention before we shoot off is that some commands can get information from Skyline and example of this could look like this:
EG: myValue = physics.getMass();
In this case we have the use the "=" sign, yeah I know this is looking like a math formula but trust me its not! Its more like a real world task like holding a box then picking some apples and putting them in the box. In our example the "myValue" is our box and the picking action is the "=" character. Lets look at our analogy written as script.
[ box ] [ picking ] [ tree . getApple ] Fills the box with apples
[ myValue ] [ = ] [ physics . getMass(); ] Fills myValue with mass value
Well thats it for now, in the next blog we will look at another important description before moving onto some Skyline fun!
*Code Flow
*Functions
See you next installment :)
23 Comment(s)
Hello! I've been reading your website for a while now and finally got the courage to go ahead and give you a shout out from Huffman Texas! Just wanted to mention keep up the great work!
I am sure this piece of writing has touched all the internet users, its really really fastidious paragraph on building up new website.
Wow, incredible blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your site is wonderful, let alone the content!
Ahaa, its nice discussion concerning this paragraph at this place at this web site, I have read all that, so at this time me also commenting at this place.
I enjoy what you guys tend to be up too. Such clever work and exposure! Keep up the awesome works guys I've added you guys to my personal blogroll.
Hey there! I've been reading your website for a long time now and finally got the courage to go ahead and give you a shout out from Lubbock Tx! Just wanted to say keep up the fantastic job!
Hey there! I've been reading your site for some time now and finally got the courage to go ahead and give you a shout out from Austin Texas! Just wanted to say keep up the great job!
I love what you guys are usually up too. Such clever work and reporting! Keep up the great works guys I've incorporated you guys to our blogroll.
This is a topic which is close to my heart... Cheers! Exactly where are your contact details though?
I visited various web pages but the audio feature for audio songs existing at this website is truly fabulous.
I just couldn't depart your web site before suggesting that I really enjoyed the usual info a person provide to your visitors? Is gonna be back continuously in order to check out new posts
Hi, I log on to your blog on a regular basis. Your writing style is witty, keep doing what you’re doing!
Wow! This blog looks exactly like my old one! It's on a entirely different subject but it has pretty much the same page layout and design. Superb choice of colors!
I conceive this site contains very wonderful indited subject matter blog posts.
I love it whenever people get together and share ideas. Great site, continue the good work!
Hi, I read your blog daily. Your humoristic style is witty, keep up the good work!
I will immediately clutch your rss as I can not find your email subscription link or newsletter service. Do you have any? Please allow me recognize so that I may just subscribe. Thanks.
I love what you guys are usually up too. Such clever work and coverage! Keep up the good works guys I've added you guys to our blogroll.
Hello friends, its impressive paragraph on the topic of tutoringand fully defined, keep it up all the time.
I love what you guys are up too. This kind of clever work and reporting! Keep up the terrific works guys I've added you guys to my personal blogroll.
Glad to be one of several visitors on this awesome internet site :D.
Hello. Great job. I did not expect this. This is a remarkable story. Thanks!
Wow! This blog looks exactly like my old one! It's on a entirely different subject but it has pretty much the same layout and design. Excellent choice of colors!
Leave a Comment