How to create a people scene

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By lchunleo

Hi all,

Am new to Godot. I wish to use Godot to create the following:

A busy scene (e.g. in 2D) of people walking right and left autonomously where each person can be doing different things (e.g. walking slowly, running, standing etc).

How can i do so? Will appreciate a tutorial or link of someone who has attempted this before. Thank you

:bust_in_silhouette: Reply From: exuin

What you should do is to make a person scene. Then, you can instance it many times in the busy scene.

The person scene should be a simple state machine. There’s a bunch of different ways to implement state machines in Godot. Here’s one example but you don’t have to follow it exactly. It may be too complicated for what you want. Feel free to simplify.

Include some form of RNG into the people so that you don’t end up with 100 copies of the same person.