# When mc hits stage boundary - transfer to opposite edge

**URL:** https://forum.kirupa.com/t/when-mc-hits-stage-boundary-transfer-to-opposite-edge/322210
**Category:** flash
**Created:** [May 14, 2011, 10:54am UTC](https://forum.kirupa.com/t/when-mc-hits-stage-boundary-transfer-to-opposite-edge/322210 "2011-05-14T10:54:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![12abhi12](https://avatars.discourse-cdn.com/v4/letter/1/9f8e36/32.png) [@12abhi12](https://forum.kirupa.com/u/12abhi12)
#### Post date: [May 14, 2011, 10:54am UTC](https://forum.kirupa.com/t/when-mc-hits-stage-boundary-transfer-to-opposite-edge/322210/1 "2011-05-14T10:54:06Z")

</div>

I have an mc which moves on pressing buttons. I want it to come to the left of the stage if it hits the right end. Simple, isn’t it? But I want to have one move thing done. I want only that part of the mc to come to the left which has hit the boundary.

For example, Let this be the mc-

```auto

----
| |
| |
----

```

When half of it hits the right end, only half should be transferred to the left end.

```auto

-- --
 | |
 | |
-- --

```

Please help.
