Skip to main content

What This Guide Covers

This is a full CraftyGame example for a multiplayer free-for-all:
  • Round timer
  • Collectible objects via Crafty.spawn_object
  • Scoring via Crafty.score
  • Announcements via Crafty.send_announcement
  • End-of-round winner announcement
This guide uses the optional 3D template path (player.tscn rooted with CraftyCharacter3D).

Scene Setup

Create coin_collector.tscn with:
  • Root: Node3D (CoinCollector)
  • Child: Node3D (SpawnPoints) with multiple spawn transforms
Create collectible scene coin.tscn (root script should extend CraftyObject).

Complete Game Script (coin_collector.gd)

If You Are Not Building A 3D Action Game

Do not use this movement pattern. Use CraftyPlayer directly and sync your own state model (for example turn state, board state, inventory, cursor targets).

Suggested manifest.json