[MP] How to sync animation in multiplayer games

Index

Attached Files

The following files have been attached to this tutorial:

.capx

dfnanimateiv.capx

Download now 188.71 KB
.capx

dfnanimateiv2.capx

Download now 188.38 KB

Stats

2,784 visits, 6,157 views

Translations

This tutorial hasn't been translated.

Tools

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

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

Prerequisite

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.

Note

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.

  • 0 Comments

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