Answer the question
In order to leave comments, you need to log in
How to fix as3 number?
The object changes its height along the y axis. How to fix the minimum number (the highest point of the object's flight)?
Answer the question
In order to leave comments, you need to log in
var obj:Object; //Tvoy obyekt
var minY:Number = 10; //Minimalnoye znacheniye po Y osi
if (obj.y < minY)
{
obj.y = minY;
}
var obj:DisplayObject;
var minY:Number = 10; // Минимальное значение
var currentY:Number; //Значение, которое будет меняться
...
obj.y = Math.max(minY, currentY)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question