# Making attached mcs appear in certain places

**URL:** <https://forum.kirupa.com/t/making-attached-mcs-appear-in-certain-places/243251>\
**Category:** Uncategorized\
**Created:** [November 5, 2007, 2:37am UTC](https://forum.kirupa.com/t/making-attached-mcs-appear-in-certain-places/243251 "2007-11-05T02:37:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonthelion](https://avatars.discourse-cdn.com/v4/letter/l/58956e/32.png) [@leonthelion](https://forum.kirupa.com/u/leonthelion)\
**Post date:** [November 5, 2007, 2:37am UTC](https://forum.kirupa.com/t/making-attached-mcs-appear-in-certain-places/243251/1 "2007-11-05T02:37:40Z")

</div>

How can I make a mc only appear on the edges of the screen? like shun  
LINK:[http://www.mofunzone.com/online\_games/shun.shtml](http://www.mofunzone.com/online_games/shun.shtml)  
perfect example of what I wanna make (at the moment) How can I do something like that? This is the code I use for attaching movieclips:

```php
 
bulletNum = 0;
function newEnemy2() {
    attachMovie("bullet","bullet"+bulletNum,getNextHighestDepth() );
 
      var bullet = eval("bullet"+bulletNum); 
   
   bulletNum++;
  
    bullet._x = Math.random()*(500-50)+50;
    bullet._y = Math.random()*(350-50)+50;
    
 bullet.onEnterFrame = function() {
        bullet.x = bullet._x;
        bullet.y = bullet._y;
    };
}
newEnemy2Int = setInterval(newEnemy2, 750+random(500));

```

(uses bullets as mc)

Thanks ^^ ill check this a lot
