Perspective

I have read the tutorial http://www.kirupa.com/developer/mx/perspective.asp
and i have a question about it…

The script looks like this:

onClipEvent (load)
{
z=0;
zspeed=5;
fl=300;
}
onClipEvent(enterFrame)
{
scale=fl/(fl+z);
_xscale=_yscale=100*scale;
z+=zspeed;
}

Question: How do I stop the object to get negative(upsidedown) when I use zspeed=negative, I want it to stop before it turns around

good question. Not sure yet.

I’ll take a look when I can

yeah, it would be great if U try to figure it out, how to do that, answer me as quickly as U can :slight_smile: