Jump to content
  • entries
    8
  • comments
    16
  • views
    5,419

About this blog

Tutorials for Ultra Engine/LeadWerks 5.

C++ Repository with final version of examples: https://github.com/Dreikblack/CppTutorialProject 

Be ready for Java code style in C++ code. Also take in consideration that English is not my native language.

Lua Repository with final version of examples: https://github.com/Dreikblack/LuaTutorialProject/

Entries in this blog

Lua Leadwerks 5 Tutorial - Adding promt for usable objects in fps controller

In this tutorial will be used Tile, Camera:Pick() and Entity:GetDistance FPSPlayer component of FPS Template will be used as a base to modify Algorithm: 1. Create a Tile with text prompt 2. In Update function of component check if player look at usable object at close distance 3. if the check is passed then show prompt at center of screen Result will looks like that: Let's implement this Algorithm: 1. Add new component variable, for example after:

Dreikblack

Dreikblack in Lua

Lua Beginner's Guide - first map, Main Menu, Loading Screen and GUI

Prerequisites https://www.ultraengine.com/learn/luasetup?lang=lua You can use Engine's IDE for scripting, but VS Code in most cases is better. This Lua extension is quite useful for VS Code, if you don't mind Tencent. Map Create a simple map call start.ultra with a brush as floor and a Empty aka pivot with FPSPlayer component How to do it:   Now you can press "F5" in the editor, or select "Game" then "run" to run your game to just made map:

Dreikblack

Dreikblack in Lua

Lua Ultra Beginner's Guide #2 - making and using components

In this tutorial we will make a newcomponent, which will be moving an entity to way points and movement start will be activated by trigger zone Let's start with making WayPoint component: In the Ultra Editor click plus button in Project tab: Now open Visual Studio Code.   Open WayPoint.json "properties" is a list of component's fields avaible for edit in the Editor "name" - actual name of property that will be used in code later "label"

Dreikblack

Dreikblack in Lua

×
×
  • Create New...