Creating Point and Click Games with Escoria

Create your first scene

Now that your Escoria project is opened, let’s start making our first scene.

  1. Locate the file device/templates/base_scene.tscn so you can copy it for your new scene.
  2. We recommend that you create a new directory for every new game scene. Create thedevice/scenes/intro-game/ directory structure.
  3. Copy base_scene.tscn in scenes/intro-game/scene.tscn
  4. Open the scene in the editor with the Scene > Open Scene menu option
    (or directly from the FileSystem panel on the left)

Now you can start populating the scene with your items, change the background, etc. (more detail below)

One thing you have to take care of is to ensure that the game node is at the bottom of the scene tree (in the Scene top-right panel) at all times. If not, just drag it there.

Populating the scene with assets

You can find the assets in this repository:

and only the assets for the first quick game here:

and a complete first game here in an archive here:

Put the downloaded assets package in the device/scenes/intro-game/sprites directory of your project folder.

Now that the scene is set up, we have to populate it with the player and items. Each element of the scene will be a separate scene which will be instanced in the master one.

You might think it’s complicated, but it helps a lot if we want to reuse our player character and some items in several scenes of the game.

Making them available as external resources will make it much easier to work on and test them. This way, all changes done to a standalone file will automatically be propagated to all scenes that inherit from it. Let’s start with an example by creating the old man character.

  1. Create a new scene (menu Scene / New Scene) and add a root node (Scene panel > "+" button) of the Node2Dtype. Rename it old_man.
  2. Attach the globals/ script to that root node: select your node in the Scene panel, and in the Inspector panel below, set the Script property, using Load in the scroll-down menu.
  3. You can now add a Sprite node to it (Scene panel > +Search: Sprite > Create). Then in the Inspector, select the sprite Texture setting and choose Load to apply an image to this element. Here we have used old_man.png stored in the sprites/ directory. It should appear on screen. Don’t worry about the position at this step.
  4. Generally, you want to detect collisions and clicks (which are kind of important in a point-and-click game).
    Add a Control node type to the old_man node, and name it area. On Godot’s central panel, you can use handles to resize it as needed. In this case, having the area fit the size of the picture of Sprite seams reasonable.
    Creating an item scene in Godot Escoria
  5. Save this scene as device/scenes/intro-game/old_man.tscn .
  6. Go back to the main scene and import old_man.tscn to it by clicking the chain icon of the Scene panel, next to the + button. Verify it is above the game node in the tree.
  7. Finally, scale it using red handles (hold Shift to keep the aspect ratio) or use the Scale property in the Inspector, and move it inside the scene until it suits you.
    Inherit item in scene and place it

For further information, read the dedicated chapter for items configuration in section Escoria fundamentals: The items.

If you want to see what the scene looks like, you can click the Play scene icon in the top-right of the Godot window or press F6.

Repeat this whole process for every item you want to have in the scene, for instance for the good and the bad bamboos, as well as the panda god.

Il y a une erreur de communication avec le serveur Booktype. Nous ne savons pas actuellement où est le problème.

Vous devriez rafraîchir la page.