# Stupid question...but how can i tell if something is within the stage bounds?

**URL:** <https://forum.kirupa.com/t/stupid-question-but-how-can-i-tell-if-something-is-within-the-stage-bounds/291051>\
**Category:** Uncategorized\
**Created:** [June 24, 2009, 1:46am UTC](https://forum.kirupa.com/t/stupid-question-but-how-can-i-tell-if-something-is-within-the-stage-bounds/291051 "2009-06-24T01:46:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jibble](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jibble/32/2265_2.png) [@jibble](https://forum.kirupa.com/u/jibble)\
**Post date:** [June 24, 2009, 1:46am UTC](https://forum.kirupa.com/t/stupid-question-but-how-can-i-tell-if-something-is-within-the-stage-bounds/291051/1 "2009-06-24T01:46:49Z")

</div>

I have a bunch of images going on all at once, some on the stage, and some off, and i would like to find a way of telling whether or not they are currently on the stage or not…

I know i can do the whole

[LEFT]checkStage = [COLOR=#993300]function[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#993300]if[/COLOR] [COLOR=#000000]([/COLOR]COLOR=#000000[/COLOR] && COLOR=#000000[/COLOR] && [COLOR=#000000]([/COLOR]mc.[COLOR=#993300]\_y[/COLOR] \>= [COLOR=#000000]0[/COLOR][COLOR=#000000])[/COLOR]&&[COLOR=#000000]([/COLOR]mc.[COLOR=#993300]\_y[/COLOR] \>=[COLOR=#993300]Stage[/COLOR].[COLOR=#993300]height[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#f000f0]_//have mc do whatever here_[/COLOR]  
[COLOR=#000000]}[/COLOR]  
[COLOR=#000000]}[/COLOR];  
[/LEFT]

but…i have a TON of stuff i would have to do that for…so i’m hoping for an easy way out 😛

like

```
 [LEFT]checkStage = [COLOR=#993300]function[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#993300]if[/COLOR] [COLOR=#000000]([/COLOR]mc==[COLOR=#993300]visible[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR]
    [COLOR=#f000f0]*//have mc do whatever here*[/COLOR]
[COLOR=#000000]}[/COLOR]

```

[COLOR=#000000]}[/COLOR];  
[/LEFT]

that way i can satisfy my laziness AND achieve what i’m trying to do without having to deal with long winded paths and a bunch of else if’s
