# How can I do to move the pawn in a zigzag pattern?

**URL:** <https://forums.unrealengine.com/t/how-can-i-do-to-move-the-pawn-in-a-zigzag-pattern/2684643>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [December 13, 2025, 7:01am UTC](https://forums.unrealengine.com/t/how-can-i-do-to-move-the-pawn-in-a-zigzag-pattern/2684643 "2025-12-13T07:01:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [December 13, 2025, 7:01am UTC](https://forums.unrealengine.com/t/how-can-i-do-to-move-the-pawn-in-a-zigzag-pattern/2684643/1 "2025-12-13T07:01:16Z")

</div>

Hi!

I’m using this to move a Pawn, but it moves in a straight line. How can I make it move in a zigzag pattern?

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/5/aa5152e99662be730fc1350585766f409504d1a2.jpeg)

This pawn is an enemy in a Space Shooter game.

I know I have to use the sine function, but I don’t know how to do it.

Thanks!

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [December 13, 2025, 9:08am UTC](https://forums.unrealengine.com/t/how-can-i-do-to-move-the-pawn-in-a-zigzag-pattern/2684643/2 "2025-12-13T09:08:46Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/d/d1d2c81b80261e2ab74e37cf9bb1a220413d8c3a.jpeg)

Sin repeat speed = sin cycle speed

Sin value = amount of sideways movement
