# Rotation

**URL:** https://forum.kirupa.com/t/rotation/192881
**Category:** Uncategorized
**Created:** [July 2, 2006, 9:53am UTC](https://forum.kirupa.com/t/rotation/192881 "2006-07-02T09:53:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mario\_hater](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@mario\_hater](https://forum.kirupa.com/u/mario_hater)
#### Post date: [July 2, 2006, 9:53am UTC](https://forum.kirupa.com/t/rotation/192881/1 "2006-07-02T09:53:06Z")

</div>

i have this code :

onClipEvent(load){  
up=0  
down=0  
thrust=2  
drag=1  
}  
onClipEvent(enterFrame){  
if(Key.isDown(Key.UP)){  
up-=thrust  
\_y+=up  
}  
if(!Key.isDown(Key.UP)){  
if(up\<0){  
up+=drag  
\_y+=up  
}  
}  
if(Key.isDown(Key.RIGHT)){  
\_rotation+=5  
}  
if(Key.isDown(Key.LEFT)){  
\_rotation-=5  
}  
}

why does it rotate and not move in its direction ? does anyone know
