Tutorial: "ACTION GAME MAKER from Scratch" Chapter 3

Create an “Enemy” Object

Next, let’s create an enemy object. We will create the simplest type of enemy, one that only moves left and right. The process is the same as creating a character: create a scene, create images and animations, configure each node, and create a script.

Creating the “enemy” Game Object

  1. Return the editor view from “Script” to “2D”.

  2. Create a new scene tab, generate a root node, and select “Game Object”.

  1. Create the object with the following settings: Object Name: enemy, Use Template: Character, Type: 2DSprite Character Base, Object Group: Enemy.

  1. Right-click on Unsaved and save it as enemy.tscn.