# A small problem

**URL:** <https://forum.kirupa.com/t/a-small-problem/255043>\
**Category:** programming\
**Created:** [March 18, 2008, 3:21pm UTC](https://forum.kirupa.com/t/a-small-problem/255043 "2008-03-18T15:21:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darkblade](https://avatars.discourse-cdn.com/v4/letter/d/3be4f8/32.png) [@Darkblade](https://forum.kirupa.com/u/Darkblade)\
**Post date:** [March 18, 2008, 3:21pm UTC](https://forum.kirupa.com/t/a-small-problem/255043/1 "2008-03-18T15:21:58Z")

</div>

Hey everyone! I have been working on a SSBM style game and trying to get guns into the game… I have almost successed but every time my guy is pointing the right direction he shoots to the left. I know what the problem is, but I don’t know how to fix it…

The code I need is like this :

```auto
if (_root.halo(right=true)) {
        speed = -13;
    } else if (_root.halo(right=false)) {
        speed = 13;
    }

```

How do you make a MC look into a different MC for a variable? In this case the variable it needs is right = true;

Can anyone help me? Thanks in advance!

Darkblade
