Book Image

Hands-On Game Development without Coding

By : Lucas Bertolini
Book Image

Hands-On Game Development without Coding

By: Lucas Bertolini

Overview of this book

Hands-On Game Development without Coding is the first Visual Scripting book in the market. It was tailor made for a non programing audience who are wondering how a videogame is made. After reading this book you will be able to develop your own 2d and 3d videogames and use it on your presentations, to speed up your level design deliveries, test your game design ideas, work on your proofs of concept, or even doing it just for fun. The best thing about Hands-On Game Development without Coding is that you don’t need any previous knowledge to read and understand the process of creating a videogame. It is our main focus to provide you with the opportunity to create a videogame as easy and fast as possible. Once you go through the book, you will be able to create player input interaction, levels, object behaviours, enemy AI, creating your own UI and finally giving life to your game by building it. It’s Alive!
Table of Contents (16 chapters)
5
Object Behaviors - Adding Logic to Objects
7
Interactable Objects - Enhancing Interaction

Inventory and gameplay visuals (2D only)

As well as being able to show icons that tell us whether we have certain keys or not, we can also use the Hub Door component to generate a similar feature in the game, but applied differently:

The Hub Door component is designed to change the visual state of a sprite depending on which and how many items we have in our inventory. Let's take the Zone2 example:

The first time we get to the zone, the door state is completely inactive, as we can see in the previous screenshot. After we pick up the key, the visual will change:

The steps are repeated for the second key:

And finally, we pick up the last key, which unlocks the door and triggers a dialog canvas:

As mentioned previously, the script in charge of doing this is the Hub Door component. In order to know how to use it, we first need to know its properties:

Required Inventory...