# Can anybody help me please for gaming stuff

**URL:** <https://forum.kirupa.com/t/can-anybody-help-me-please-for-gaming-stuff/198755>\
**Category:** Uncategorized\
**Created:** [August 28, 2006, 12:09pm UTC](https://forum.kirupa.com/t/can-anybody-help-me-please-for-gaming-stuff/198755 "2006-08-28T12:09:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![coool\_ashu](https://avatars.discourse-cdn.com/v4/letter/c/e47c2d/32.png) [@coool\_ashu](https://forum.kirupa.com/u/coool_ashu)\
**Post date:** [August 28, 2006, 12:09pm UTC](https://forum.kirupa.com/t/can-anybody-help-me-please-for-gaming-stuff/198755/1 "2006-08-28T12:09:39Z")

</div>

I have made two movie clip - 1) char1\_mc 2) char2\_mc

char1\_mc is having right side view, that means it walks on right side  
char2\_mc is having left side view, which moves or walks on left side

If I would be having one single movie clip then i would have able to move it with the code

var keyListener:Object = new Object();  
keyListener.onKeyDown = function() {  
if (Key.isDown(Key.LEFT)) {  
char1.\_x -= 10;  
}  
if (Key.isDown(Key.RIGHT)) {  
char1.\_x += 10;  
}  
};  
Key.addListener(keyListener);

But my question is

1. If I press right key, i should be able to move my char1\_mc to right direction
2. If I press left key, i should be able to move my char2\_mc to left direction
3. only one movie clip should be visible at one time like if I press right key only char1\_mc should be visible on the stage and if I press left key only char2\_mc should be visible.

If you can guide me for this ,  
I will be very thankfull to you
