# Gaming Trouble

**URL:** https://forum.kirupa.com/t/gaming-trouble/17475
**Category:** flash
**Created:** [April 5, 2003, 7:31pm UTC](https://forum.kirupa.com/t/gaming-trouble/17475 "2003-04-05T19:31:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![aussy](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@aussy](https://forum.kirupa.com/u/aussy)
#### Post date: [April 5, 2003, 7:31pm UTC](https://forum.kirupa.com/t/gaming-trouble/17475/1 "2003-04-05T19:31:13Z")

</div>

Ok I need some major help. I’m making a game and I need it so that teh character movea around with the thrust motion. I have that down but there’s one annoying part about the script.

onClipEvent (enterFrame) {  
// rotate right or left  
if (Key.isDown(Key.RIGHT)) {  
\_rotation += 15;  
}  
if (Key.isDown(Key.LEFT)) {  
\_rotation -= 15;  
}

That Part

I need it so that it rotates the direction that it is going without it actually rotating the picture because it is a collction of movie clips that make a character walking. Please HELP.

Thanks  
aussy

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 6, 2003, 2:26am UTC](https://forum.kirupa.com/t/gaming-trouble/17475/2 "2003-04-06T02:26:20Z")

</div>

try this (assuming that the character look to the right)…

onClipEvent (load) {  
this.\_xscale = 100;  
}  
onClipEvent (enterFrame) {  
if (Key.isDown(Key.RIGHT)) {  
if (this.\_xscale == -100) {  
this.\_xscale = 100;  
}  
}  
if (Key.isDown(Key.LEFT)) {  
if (Key.isDown(Key.LEFT)) {  
if (this.\_xscale == 100) {  
this.\_xscale = -100;  
}  
}  
}  
}
