User Tools

Site Tools


animation_marker

Animation Marker

Markers are the system used to start/stop effects to trigger during an animation in an arena fight. It is a prefab and a resources. All markers must be in the folder Resources/Prefabs/Marker.

Markers

There are two kinds of markers (for now), particle system and UI:

  • The particle system marker lets you play/stop a particle system and move it in the scene. It can be set at the attacker pawn position, opponent position or travel from the source to the target or the opposite. You can take as example the MarkerFire marker.
  • The UI marker lets you play a 2D effects. You can take as example MarkerSlow.

How to play an effect in an animation

  1. You must first create a new marker containg the effect you wish to play during the fight. You can copy the markers MarkerSlow or MarkerFire if you need example. Make it a prefab. Store it in Resources/Prefabs/Marker
  2. You must set the marker in an AttackDescription or MagicDescription.
  3. In the pawn, add an AnimationEventLibrary.
  4. In the pawn animation, add a animation event. You have two possible methods you can call:
    • StartMarkerFromActionDescription : this will start the effect attached to the action the pawn is running.
    • StopMarkerFromActionDescription : this will stop the effect.
animation_marker.txt · Last modified: 2015/09/06 16:40 by 82.247.193.95