# Paper2D Character as Enemy, Rotation reset to 0 on each Tick

**URL:** <https://forums.unrealengine.com/t/paper2d-character-as-enemy-rotation-reset-to-0-on-each-tick/1841346>\
**Category:** Character & Animation\
**Tags:** unreal-engine, question\
**Created:** [May 5, 2024, 2:52pm UTC](https://forums.unrealengine.com/t/paper2d-character-as-enemy-rotation-reset-to-0-on-each-tick/1841346 "2024-05-05T14:52:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KennyTeo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KennyTeo](https://forums.unrealengine.com/u/KennyTeo)\
**Post date:** [May 5, 2024, 2:52pm UTC](https://forums.unrealengine.com/t/paper2d-character-as-enemy-rotation-reset-to-0-on-each-tick/1841346/1 "2024-05-05T14:52:48Z")

</div>

The issue is as described in title.  
Tried a solution I found for a seemingly similar issue, but it did not work.  
Below are the details.

**What I am using**  
I am using Paper2D Character to create an Enemy.  
I am trying to get it to rotate the Actor Transform according to the direction it is moving.  
I followed this tutorial to created a Player Character:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/c/79cfa7f1ce80c70e96a87ac08f8165357b3213b4.jpeg "How to make a 2D game in Unreal Engine 5 - Beginner Tutorial") ](https://www.youtube.com/watch?v=g31NTpq9p-o)

The Character worked perfectly fine, rotation and all.  
But when I used a similar process to create an enemy, I have issues with the rotation.

**My Problem**  
Control Rotation resets to 0,0,0 on each tick.  
Pardon the mess, but basically I am printing the Yaw after each sequence.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/b/f5b305d83e0acd107a79945f37f04f2500203fd3.png)  
The result is:  
0 (1)  
5 (2)  
5 (3)  
0 (1) ← Next Tick  
0 (2)  
0 (3)

**What I Tried**  
Turn off “Pawn \> Use Controller Rotation Yaw”  
(Reference: [Actor rotation is reset every tick](https://forums.unrealengine.com/t/actor-rotation-is-reset-every-tick/336386))

I am new to UE5 (or rather UE anything), so do let me know if any of my information is unclear.

---

<div class="post-metadata">

**Author:** ![KennyTeo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KennyTeo](https://forums.unrealengine.com/u/KennyTeo)\
**Post date:** [May 5, 2024, 3:01pm UTC](https://forums.unrealengine.com/t/paper2d-character-as-enemy-rotation-reset-to-0-on-each-tick/1841346/2 "2024-05-05T15:01:20Z")

</div>

Some correction for the above details (I found the problems after I posted, and was not able to edit the post)

**Correction 1**  
The Result was actually:  
0 (1)  
180 (2)  
180 (3)  
0 (1) ← Next Tick  
180 (2)  
180 (3)  
Basically something that happens after (or before) my string of nodes resets the Rotation.

**Correction 2**  
This is more of an update than a Correction.  
I would like to clarify that the Rotation change happens in “Update Control Animation”.  
I am kind of glad this is separated from the main post as it might complicate the question unnecessarily.

Anyways, this is how the Rotation is updated:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/9/589f696e804c3da12af82ab23e9fa5a203568364.png)

Basically, I am checking for the X Velocity, and changed the Rotation to a certain flat value based on it.  
The weird numbers are just results of my desperation, as I have no idea where the 0 could possibly come from, so I set all of my values to a certain non-zero in attempt to find it.

---

<div class="post-metadata">

**Author:** ![KennyTeo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KennyTeo](https://forums.unrealengine.com/u/KennyTeo)\
**Post date:** [May 5, 2024, 3:33pm UTC](https://forums.unrealengine.com/t/paper2d-character-as-enemy-rotation-reset-to-0-on-each-tick/1841346/3 "2024-05-05T15:33:11Z")

</div>

Well, this is embarrassing.  
I found a solution right after I posted the question, but I am leaving it here in case anybody is in a similar situation.

Apparently, for non-player pawns, you cannot use the controller.  
Instead you need to Set Actor Rotation instead.

I would like to remind anybody who might be reading this that I am extremely new to UE, so my term usage might be off.
