# Cancelling a paperZD animation

**URL:** <https://forums.unrealengine.com/t/cancelling-a-paperzd-animation/2228411>\
**Category:** Character & Animation\
**Tags:** unreal-engine, question\
**Created:** [December 17, 2024, 5:10pm UTC](https://forums.unrealengine.com/t/cancelling-a-paperzd-animation/2228411 "2024-12-17T17:10:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wood\_turtle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wood\_turtle](https://forums.unrealengine.com/u/Wood_turtle)\
**Post date:** [December 17, 2024, 5:10pm UTC](https://forums.unrealengine.com/t/cancelling-a-paperzd-animation/2228411/1 "2024-12-17T17:10:04Z")

</div>

I have a character that can perform spells. If used a sprite is summoned in front of the player with an animation. I want the user to have to keep holding down the spell button (rmb) to use the spell, if they let go earlier the spell is cancelled. What I have now is when I click once without holding down it summons the sprite and plays the full animation. How do I cancel the animation when the button is released? I am using paperZD and it’s a 2d game.
