O'Reilly logo

Beginning Game Development with Amazon Lumberyard: Create 3D Games Using Amazon Lumberyard and Lua by Jaken Chandler Herman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Jaken Chandler Herman 2019
J. C. HermanBeginning Game Development with Amazon Lumberyardhttps://doi.org/10.1007/978-1-4842-5073-0_8

8. Beginning Lua Scripting

Jaken Chandler Herman1 
(1)
Conroe, TX, USA
 

To add custom functionality for input controls, enemy controls, and other various gameplay values, we need to harness the powers of the Lua programming language. In this chapter, we will first have a programming in Lua crash course, then we will look at in-game examples for Amazon Lumberyard. In these examples, we will modify our player character’s camera control script as well as the enemy AI spawner script.

In the crash course, we will learn about comments in Lua, both writing and invoking functions, loops, collections, variables, conditional statements, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required