Jump to content

Hello! I'm new... some tips?

Recommended Posts

Hello! I'm new here, just bought this software because those mainstream ones (Unity and Unreal) were to difficult and time consuming to achieve my desired projects. I'm really excited to use Leadwerks but I don't know where to start? 
A part from the LEARN section, there are some other places to learn? Dunno... eBooks? some online course from Udemy?... I just want to start on the right path and to fully understand the basics of the engine without wrong choices!
Thanks a lot!

Share this post

Link to post

To lay out the fundamentals for you, you have the Leadwerks Editor, and the following:

  • Your project will be located in X:/Users/User/Documents/Leadwerks/Projects/Project
  • Your project will contain models folder, materials folder, scripts folder, and source folder.
  • The scripts folder is where the main code for your game is located called main.lua. For Pro users, the source folder has both main.cpp and app.cpp, both are the main files for the project.
  • Main.lua is where you put your game code if you have Indie version.

Look at the "Learn" section, click on the top right corner of the navigation to find the tutorials for the engine. 

This one in particular looks easily digestible for beginners: 


You put this in your Main.lua and click the Run button in the Editor.

--Create a window
window = Window:Create()
context = Context:Create(self.window)
world = World:Create() 

--Load a map

while true do
        if self.window:Closed() or self.window:KeyHit(Key.Escape) then return false end
        return true

Map:Load in this case is the function used to load maps. And similarly there are the Window:create() to initiate the game applicaiton window, Context:create() - to create the context (simply, it's a canvas for drawing stuff like texts, sprites, textures, or even the game to your screen.).

Map is the class, Load is the function. Classes are the categories with class.png icon in the Learn section. Each class has a number of functions that you can use to make your game. And each class have different methods for different types of tasks, the Map class for one is for anything related to Maps. The Model class for example is anything about managing models - loading, removing, adding textures, etc.

That should jump start you with the engine. Have fun :) 

  • Like 2

Share this post

Link to post
10 hours ago, Art_C0de said:

Thanks a lot for the tips and for your time :) I'll try my best using this engine!
Have a nice day!

I mostly learned Leadwerks by playing about with things. There a load of bundled scripts that come with it (eg, an fps player script, door scripts, trigger scripts etc). There are also shaders to give a nice visual effect and a few materials to get you sorted.

After fiddling about with things, adding some brushes etc you'll get by just fine. There are also tutorial maps you can use to see how things work (they're added to each project automatically - just open the maps). Have a poke around with those and see how the different items interact. You'll also probably want to check out the Flowgraph Editor - a very, very useful (and dead simple) tool especially when starting out.

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.

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