Jump to content
karmacomposer

Lua scripts in asset store are mostly OLD - anything new?

Recommended Posts

In my eagerness to learn Lua, which does not seem to be too hard, just different, I was downloading Lua scripts from the Leadwerks Asset store. I noticed MOST of them are pretty old and mostly work with LE2, although there were a few that were written for Leadwerks 3.

 

First, are there going to be any new scripts for Leadwerks 3? Almost everything available as a learning resource, other than Leadwerks' own training materials is geared towards beginning "Hello World" ****. I now know how to add 5+5 in Lua! YAY. However, this does nothing to help me with Leadwerks 3 engine, which is just a smidge harder than that.

 

Among other things, I am looking for a first person Lua script. In just messing around with Leadwerks 3, I figured I could just drop in a FPS Lua script and it would just work. I'm probably wrong about that.

 

I did drop in the freelook Lua script and that was pretty cool as a way to fly around my level and see how it looks.

 

I deleted that and re-imported the original 3rd person script, but changed the orientation of the camera to be more of a over the shoulder type (I need to make it 'float' so it can move intelligently with the character). I dragged and dropped the Barbarian model into the script (the folder icon was greyed out, so dragging and dropping was the only way to do that).

 

It worked, but then I had to re-do the WASD keys since they were set for a birds-eye camera instead of a properly oriented third person over-the-shoulder camera.

 

All in all, what a TON OF FUN this is. I really love LE3 and i'm beginning to see just how powerful this engine is and will be. When terrain and other elements that were major selling points in LE2 make it into the LE3 engine, what a winner this will be!

 

Let's just see some more Lua scripts from you experts so us total noobs have something to learn from.

 

Mike

Share this post


Link to post

I think you are really going about it the right way. Play around with the scripts that are available and modify them to what you want. You aren't really learning Lua, but using Lua to learn LE3's API.

 

What I would do if I were you is think about what you want to do (not in code just a general idea). Then set out to get it working using Lua and Leadwerks 3. LE3 is so new that getting all these detailed Lua examples will take a good amount of time. No sense in waiting for all those, just dive right in and if you have questions, look at the API doc to see if anything stands out that could solve the problem you are having and/or ask on the forum.

 

Sounds like you have the basic grasp of Lua now anyway.

Share this post


Link to post

I think you are really going about it the right way. Play around with the scripts that are available and modify them to what you want. You aren't really learning Lua, but using Lua to learn LE3's API.

 

What I would do if I were you is think about what you want to do (not in code just a general idea). Then set out to get it working using Lua and Leadwerks 3. LE3 is so new that getting all these detailed Lua examples will take a good amount of time. No sense in waiting for all those, just dive right in and if you have questions, look at the API doc to see if anything stands out that could solve the problem you are having and/or ask on the forum.

 

Sounds like you have the basic grasp of Lua now anyway.

 

Yep. I can program in other languages, so Lua really does not seem very hard at all. Just learning all the commands LE3 offers and how to program them is truly the challenge.

 

I love to create outdoor games, so when large terrains and water, among other things, is available, LE3 will be a ton of fun.

 

I hope that when terrain is available in-game, it is deformable (as in, destructable). Same goes for objects. I love games where you can blow things apart (like buildings, walls, caves, etc).

 

Other than that, LE3 seems perfect for 2D games, side scrollers, indoor FPS games and more.

 

Are space games possible in Leadwerks 3?

 

Mike

Share this post


Link to post

I'd say any 3D is possible with LE. All those things you are talking about can be in LE3 right now by you/we/us and doesn't require the engine to do it, although it would make it easier. I wouldn't hold your breathe on destructable things being part of the engine (it's possible but there are many more things it needs/wants). You can set this up yourself though once you get familiar with the engine.

Share this post


Link to post

I would say Space games are possible.

I experimented a bit with it and uploaded a LUA-Script for Planets to move.

 

The only problem i had was the visibility of far away planets. They disappeared too early and the Editor ignored the settings for it.

But i think it is fixed already. Sadly i just couldn't find time to experiment with it further.

Share this post


Link to post

Great, because I would like to use Leadwerks3 for one of my game ideas - I think it will work as long as SOME of it can be set in a space format (zero gravity, flight sim characteristics - but in space, etc). The rest of the game takes place on planets, so large-scale terrain is necessary and the rest LE3 can already handle.

 

I assume displaying cut scenes and menus are all programmed in Lua?

 

Mike

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...