Jump to content
gamedev123

Novice Questions

Recommended Posts

Hello all - new to the forums, and so a few ubernovice questions. I did a lot of Google searching, but I'm unsure of what information pertains to versions of Leadwerks prior to 3.0... Hoping a forum dweller might be able to help me sort it out. Sorry if I missed a FAQ somewhere.

 

Background:

I'm a game designer and gameplay content scripter, currently using Corona SDK (and hence, Lua). I've used Lua a few other times, primarily with support from a programming team working in C++ or Objective-C, and shooting me Lua scripts from time to time. This time I'm planning to work on a project solo - with a little support from a contract programmer. I am attracted to Leadwerks due to the comprehensive Lua scripting tutorials on the youtube and the web (albeit for Leadwerks v2.3).

 

I just wanted to ask a few questions pertaining to Lua support and more recent Lua scripting documentation for Leadwerks v3.0

 

- can a complete game be created with Lua script? No C++ required? For all supported platforms?

- are scripts still compiled into .luac (and are there any other obfuscation tools available?)

- can I create and/or heavily modify first and third person controllers from Lua? (I will be creating a 'floating' first-person character that turns freely but 'snaps' to face in the direction of compass headings.

- my enemies require pathfinding that uses floor, ceiling and walls. Is this possible with default pathfinding and navmeshes? And accessible from Lua?

 

Thanks for any info that you folks can provide. Even better if you can point me to extensive Lua docs for v3.0!!!

 

[edit] Are the old v2.3 Lua tutorials on youtube still relevant? They are very extensive!

Share this post


Link to post

Hi.

I also use Lua only with Leadwerks 3.

 

-Yes you can make a complete game using Lua.

-For character controller, you can control it from Lua as you use same functions as C++, and control speed, direction, jumping

To float, perhaps putting physic Mass to 0 should work,i don't tried it.

-Pathfinding only requires one function call in Lua (like C++),it's super easy to use

pathfinding, will work like normal other pathfinding systems : your enemies will avoid walls and will find the best way to reach some point you give to the function like the player position for example.

 

 

The doc reference is writtent for Lua and C++ each time, and it has some example code you can copy and test, you can find it here :

http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/

 

You have lot f overy good video tutorials here, simple to understand that covers Lua (mainly those made by Aggror)

http://www.leadwerks.com/werkspace/page/tutorials/

Share this post


Link to post

Lua stuff for LE 2.x are outdated, but if you are a Lua fan then LE 3 is for sure for you. To me it sounds like what you listed above LE 3 can do for you.

Share this post


Link to post

The 2.3 versions no longer apply for Leadwerks 3.x. You could still watch them gain more experience in how GamePlay mechanics are programmed but the Leadwerks API is no longer valid.

Share this post


Link to post

@Aggror - gotcha.

 

So then the video listed above (Leadwerks 3 Tutorial #10) is the only Lua training video for v3.0? It appears all recent training vids are C++ with Lua script files hosted on Werkspace.

 

If I'm correct, watching the C++ training and reviewing the appropriate Lua file would seem to be my best option...

Share this post


Link to post

Thanks Josh.

 

I'm noticing that the other forums are protected and I can't download the user's guide PDF from Assets. Are these only for registered users of the full product?

Share this post


Link to post

Hey, does the license allow for SINGLE USER simultaneous installs on desktop and laptop - without having to go through activation/deactivation toggling...? I have a PC at work, but use a Macbook at home on the weekends...

Share this post


Link to post

Hey, does the license allow for SINGLE USER simultaneous installs on desktop and laptop - without having to go through activation/deactivation toggling...? I have a PC at work, but use a Macbook at home on the weekends...

Yes, that's fine.

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...