# Need Help On My Game!

**URL:** <https://forum.kirupa.com/t/need-help-on-my-game/176085>\
**Category:** Uncategorized\
**Created:** [January 20, 2006, 5:56am UTC](https://forum.kirupa.com/t/need-help-on-my-game/176085 "2006-01-20T05:56:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![narutoboy](https://avatars.discourse-cdn.com/v4/letter/n/ecccb3/32.png) [@narutoboy](https://forum.kirupa.com/u/narutoboy)\
**Post date:** [January 20, 2006, 5:56am UTC](https://forum.kirupa.com/t/need-help-on-my-game/176085/1 "2006-01-20T05:56:02Z")

</div>

ok, im designing a game called monkey catch that fruit. Im trying to figure out how I can make the monkey switch to the left or right without moving the body. You guys probably have no clue what I mean, but its really hard to explain.

**here is an image to look at whats happening** [http://img39.imageshack.us/img39/4176/help7uo.th.jpg](http://img39.imageshack.us/img39/4176/help7uo.th.jpg)

here is the code to make the monkey switch. its scaleing the MC  
[SIZE=2][COLOR=#008080]onClipEvent (enterFrame) {

if (Key.isDown(Key.LEFT)) {

this.gotoAndStop(2);

this.\_x -= 5;

\_xscale = 100;

} else if (Key.isDown(Key.LEFT)) {

this.gotoAndStop(2);

this.\_x += 5;

\_xscale = -100;

} else {

gotoAndStop(1);

}

}

[/COLOR][/SIZE][FONT=Arial][SIZE=2]

[/SIZE][/FONT][SIZE=2][COLOR=#008080]ok… i first made an instance… this=instance… since its a control of a walk for a MC=movie clip

i HAVE to install it on that MC… so this means… the monkey or instance of

[/COLOR][/SIZE][SIZE=2][COLOR=#008080]this.gotoAndStop … points two frame two of the instance of (a MC) of the monkey walking

this.\_X - … ok that means Monkey. \_X (is just the X value)… - … means its subtracted… or MOVED over 5

[/COLOR][/SIZE][SIZE=2][COLOR=#008080]\_Xscalle  
[/COLOR][/SIZE]
