Platformer ai

This example shows how to make AI for a platformer The example uses the platformer behavior to make AI. When the AI is in collision with certain triggers/objects, it either changes a variable that controls the object, or does the action directly. Along with the AI, a simple health and damage system using the Flash Extension is present. When the player collides with the AI, the player loses some health and starts flashing. If the player is flashing when in collision with the ai, it doesn’t count. More explanation is present in the event sheet.

Features used in this example

GDevelop is a game engine allowing you to make games without coding. It's free, fast and easy to use. Get started now!

The example uses these features:

  • Advanced control features
  • Cameras and layers features
  • Features for all objects
  • Scene management features
  • Variable features
  • Panel Sprite (9-patch) Object
  • Platform Behavior
  • Sprite
  • Text object
  • Tiled Sprite Object

Read more about all features and extensions in GDevelop here.

Game creation, made simple

Imagine and publish your games with GDevelop. Bundled with tutorials and examples.