ORK Framework Logo - RPG Editor for Unity
  • Features
  • Showcase
  • Guide
    • Documentation
    • Tutorials
    • API
  • ORK 2
    • Tutorials
    • Plugins
    • API
  • Support
  • Forum
  • Get ORK

Getting Started

  • Introduction
  • First Steps
  • Game Starters
  • Components Overview
  • Player/Camera Controls
  • Game Over

Editor

  • Editor Overview
  • Base/Control Section
  • Game Section
  • UI Section
  • Templates Section
  • Status Section
  • Inventory Section
  • Combatants Section
  • Battles Section

Features

  • Animations
  • Areas & Teleports
  • Combatant Triggers
  • Control Maps
  • Difficulties
  • Factions
  • Formations
  • Formula Nodes
  • Logs
  • Loot
  • Move AI
  • Quests
  • Research Trees
  • Schematic Nodes
  • Shortcut Slots

Status System

  • Status Values
  • Status Effects
  • Attack/Defence Modifiers
  • Abilities
  • Combatants
  • Classes
  • Status Bonuses
  • Status Conditions

Inventory System

  • Inventory System Overview
  • Currencies
  • Items
  • Equipment
  • AI Behaviours/Rulesets
  • Crafting Recipes
  • Shops

Battle System

  • Battle Systems
  • Adding Battles to Scenes
  • Calculating Action Results
  • Battle Menus
  • Battle AI
  • Battle AI Nodes
  • Battle Ranges
  • Battle Camera
  • Target Selection
  • Battle Spots
  • Battle Texts
  • Battle End & Loot Dialogues
  • Action Combos
  • Damage Types
  • Cursor Prefab Components
  • Grid Battles
  • Adding Battle Grids to Scenes
  • Battle Grid Highlights
  • Battle Grid Formations

UI System

  • UI System Overview
  • Start Menu
  • Menu Screens
  • Notifications
  • Combatant Selections
  • Quantity Selections
  • Text Display Settings
  • Cursor Settings
  • Console (In-Game)
  • Menu Requirements
  • HUDs: Content Providers
  • HUDs: Conditions
  • HUDs: Click Actions
  • HUDs: Text Content
  • HUDs: Value Bar Content
  • HUDs: Status Values
  • HUDs: Status Effects
  • HUDs: Attack Modifiers
  • HUDs: Defence Modifiers
  • HUDs: Shortcuts
  • HUDs: Abilities
  • HUDs: Equipment
  • HUDs: Class Slots
  • HUDs: AI Behaviours
  • HUDs: AI Rulesets
  • HUDs: Quests
  • Timebar HUD

Scripting

  • Scripting Overview
  • Access Handler
  • Code Extensions
  • Combatant Scripting
  • Custom Nodes
  • Custom Component Save Data
  • Home
  • Guide
  • Documentation
  • Features
  • Animations

Animations

Table of Contents
  • Animation Types
    • General Settings
  • Animations
    • Legacy
    • Mecanim
    • Custom
  • Animation Overrides

Animating your combatants is done by creating animation types and assigning animations to them.

Combatants can have different animations in the field and in battle. Equipment and status effects can override individual animations of a combatant, e.g. a poison effect playing a different idle animation or a weapon overriding movement animations.

Animation Types #

When playing an animation for a combatant, you’ll actually play an animation type. Combatants will use the animation they have currently assigned to the animation type.

Animation types are set up in Base/Control > Animation Types.

Here are some examples for animation types:

  • idle
  • run
  • attack
  • defend
  • use item
  • cast magic

You can play animation types on a combatant in schematics using a Combatant Animation node.

General Settings #

The general settings of the animation types define the default animation types for different idle and movement animations, as well as death, revive and victory animation types.

The idle and movement animations play automatically when combatants use auto animations.

Animations #

Animations define how an animation type animates a combatant. They are set up in Base/Control > Animations.

You can set up animations for the legacy animation system, Mecanim and custom animation systems (using components). The animation setup can define the animations for all 3, the combatants define which animation system they use. The default animation system type is defined in Combatants > Combatants > General Settings, each combatant can optionally override it with a custom animation system type.

You can add multiple animations to an animation type, one of them will be used at random. E.g. add multiple animations to a Damage animation type (that’s used to play a damage animation when a combatant is hit) – each time the combatant is hit it’ll play a different damage animation.

Legacy #

The legacy animation system only requires the name of the animation to play it. You have full control on how the animation plays (e.g. Cross Fade) and can optionally set the layer and speed of the animation.

Legacy animation use the Animation component to play animations.

Mecanim #

Mecanim animations require you to define the name of the animation state and it’s layer. Beside directly playing or crossfading an animation state, you can add parameters to play or stop animations via their animator controller’s transitions. This largely depends on how the animator controller you’re using for a combatant is set up.

The Mecanim setup allows you to automatically forward the combatant’s movement speed to float parameters of the animator controller. You can also forward roation information in either full degree (float parameter) or 4/8-directional information (int parameter). This can be used to control the combatant’s movement animations based on the forwarded parameters, e.g. feeding them into a blend tree.

Additionally, you can check the active animation state and set parameters depending on it.

Mecanim animations use the Animator component to play animations.

Custom #

Use custom animations to integrate your custom animation systems/controllers into ORK. The combatant’s animation setup has to define the name of the animation component.

The animation setup defines also defines the class and function for playing and stopping animations on the component. You can optionally add parameters to forward information about the animation you want to play. E.g. use a string parameter to define the name of an animation.

Animation Overrides #

Combatants define which animation setup they use as their basis and can optionally use an additional setup in battles.

Equipment and status effects can override the animation setup. Overriding animations don’t need to define all animation types of a combatant – just those that should change.

E.g. a poison status effect only overrides the idle animation type to play a different idle animation while poisoned. This doesn’t affect any other animation

I.e. you don’t have to define all animations in each animation setting. It’s best to create an animation setting that contains all standard animations of a combatant (for field and battle). If you need to override certain animations (like idle and run in battles), simply create a new animation setting with only those animations defined and use it where it’s needed (e.g. as the combatant’s battle animation).

E.g. a spear and a sword (equipment) each overrides the attack animation type, playing different attack animations based on which weapon is equipped.

Animation types search in this order:

  • status effects
  • equipment
  • battle (when in battle)
  • base

The first assigned animation is used, e.g. if a status effect overrides the animation type, that’ll be used. Otherwise it’ll look in equipment, etc. – until an assigned animation is found, or no animation is played if nothing is assigned to an animation type.

Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Updated on November 22, 2021
Table of Contents
  • Animation Types
    • General Settings
  • Animations
    • Legacy
    • Mecanim
    • Custom
  • Animation Overrides
Sitemap
  • Features
  • Showcase
  • Guide
    • Documentation
    • Tutorials
    • API
  • ORK 2 Hub
    • Tutorials
    • Plugins
    • API
  • Support
  • Forum
  • Get ORK
  • Contact
  • Blog
  • Makinom
  • gamingislove.com
Categories
  • News (60)
  • ORK 2 (137)
    • Tutorial (137)
      • Game tutorial (50)
      • Gameplay (32)
      • How-to (55)
  • Release (130)
Search

© 2015 Gaming is Love e.U.

Disclosure: This site may contain affiliate links, which means I may receive a commission if you click a link and purchase something that I have recommended. While clicking these links won’t cost you any money, they will help me fund my development projects while recommending great assets!