Hi
im trying to create an image gallery where i place my images randomly over the stage but i want to place the images in the next most empty spot over the stage, for example if all the images somehow have been placed at the right of the stage i want to use math to detect that and find the empty left position .
Im sure there is a math formula to do it , will somebody knows the name for it ? or a link ?
i found this but uses hitTest and thats not efficient and it doesnt finds the big empty spot: