[MP] How to sync animation in multiplayer games

3

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

7,327 visits, 14,633 views

Tools

Translations

This tutorial hasn't been translated.

License

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.

Published on 10 Oct, 2014. Last updated 19 Feb, 2019

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

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