[MP] How to sync animation in multiplayer games



Attached Files

The following files have been attached to this tutorial:



Download now 188.71 KB


Download now 188.38 KB


5,809 visits, 12,084 views



This tutorial hasn't been translated.


This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

First, download only DFNanimateIV.capx to follow the tutorial.

Only download DFNanimateIV2.capx when you reach the section that asking you to download it.


This tutorial requires readers to understand the "inputs" synchronization process flow in the official real-time MP example which comes with standard C2 installation.

What you must understand to use

Sync instance variable [MP action]

Add client input value [MP action]

Setbit/Getbit [System Expression]

Terminology used in this tutorial

Character: Your object

Movement: Indicate the movement of your character

AnimationState: Indicate the state of animation based on character movement

What is included in this tutorial

DFNanimateIV.capx showing the process flow of synchronizing your animation.

DFNanimateIV2.capx showing how it should be implemented in the actual game.


By the end of this tutorial, the redundancy of "Movement" and "AnimationState" will be removed. Details are explained at the Implementation Section.

This tutorial will not cover the essentials that have been covered in the official example and tutorial.

This tutorial only use 4-direction movement for simplicity.


  • Order by
Want to leave a comment? Login or Register an account!