Introduction The CameraControllingEntity provides a standardized way to control camera position in games which contain a moving character or which use Tiled for maps. Usage Example in Glue The easiest way to use the CameraControllingEntity is to add an instance of the CameraControllingEntity in Glue. Keep in mind that this may have already been done[…]

Entity Performance

Introduction The Entity Performance tab provides options for improving the runtime performance (reducing CPU usage) for an entity. This tab is only needed for games which include a very large number of entities (typically many hundreds or thousands of instances). Common types of entities which benefit from this tab are enemies and bullets. Entity Performance[…]

02 – Enemy Entity

Introduction This tutorial covers how to add an Enemy to your project. To speed up the process we’ll be importing an existing entity rather than building a new one ourselves. Once imported, we will modify the entity so it has the functionality we’ll need for this tutorial – specifically adding the ability for the enemy[…]

02 – Enemy Entity

Introduction This tutorial will create the Enemy entity which we’ll use in the remainder of the tutorials. This enemy will be similar to a Player entity – it has collision and will use Platformer physics, but it will not use input from a keyboard or gamepad – instead its movement will be controlled purely in[…]

03 – Creating Block Entity

Introduction Now that we have a simple platformer game with a Player moving around in a level with solid collision, we can add blocks to our game. We will be creating a new Block entity, instantiate blocks through our TileMap, and adjusting collision RepositionDirections. Creating the Block Entity Our Block entity will contain an AxisAlignedRectangle[…]

03 – Creating the NPC Entity

Introduction This tutorial will add a new entity to our game called Npc. This Entity will display an animated Sprite, will have a collision rectangle, and will navigate the map randomly. Downloading Files Our NPC will display animations using an AnimationChainList file (.achx). We need to download this file and the accompanying .png file. Save[…]

Top Down Entity

Introduction The Top Down settings for entities provides an easy way to implement top-down movement for a character. It can be extended to support any input device, multiple sets of movement variables, and animation.


Introduction The TileEntityInstantiator class simplifies the creation of entities through Tiled. It is the most common way to add entities to your game. Defining an Entity for Instantiation Before adding an entity to your screen, you must first define an entity. Fortunately any entity can be created through Tiled, so we won’t go through the steps[…]

01 – Creating a Top Down Entity

Introduction This tutorial shows how to create an entity which can be used as a top down entity. It requires understanding the basics of working with Glue including: Creating a Screen Creating an ntity Adding an Entity instance to a Screen Running a Glue project Creating an Entity For this project we’ll begin with a[…]

03. Controlling a Platformer Entity

Introduction This tutorial covers how to read input to move a platformer entity. We will also be creating a level to test out our platformer entity. To create a level and collision, we will be using a Tiled level. For more detail on how to create Tiled levels, see the Tiled tutorial. Adding a Level Next[…]