CurrentChainName
Introduction
Code Example
// Assuming that SpriteInstance is a valid Sprite, and that SpriteInstance contains animations with the name WalkLeft and WalkRight
if(InputManager.Keyboard.KeyDown(Keys.Right))
{
SpriteInstance.CurrentChainName = "WalkRight";
}
else if(InputManager.Keyboard.KeyDown(Keys.Left))
{
SpriteInstance.CurrentChainName = "WalkLeft";
}What does ChangingCurrentChainName do?
What does setting CurrentChainName not do?
Last updated
Was this helpful?