# Making a Enemy

**URL:** <https://forum.kirupa.com/t/making-a-enemy/322556>\
**Category:** Uncategorized\
**Created:** [May 25, 2011, 8:31am UTC](https://forum.kirupa.com/t/making-a-enemy/322556 "2011-05-25T08:31:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheAwesomeDude](https://avatars.discourse-cdn.com/v4/letter/t/f05b48/32.png) [@TheAwesomeDude](https://forum.kirupa.com/u/TheAwesomeDude)\
**Post date:** [May 25, 2011, 8:31am UTC](https://forum.kirupa.com/t/making-a-enemy/322556/1 "2011-05-25T08:31:12Z")

</div>

Hi!  
I would need some help with making a Enemy go back and forth. I kinda want this:  
“Enemy.x += 10;” Than after 3 seconds, he goes “Enemy.x -= 10;”. Like if he is turning around and goes back.
