On the start of layout - blue circles should be created at random locations within the viewport and move either at 90 or 180.
The green circles should be created just outside the viewport on the Y axis (top/bottom) and randomly along the viewport on the X axis and move either at 90 or 180 (circles move in direction of arrows).
I've tried many different ways - viewportleft/right, windowwith, separate, together, X/Y....
But when i run the layout, some of the randomly created green circles are outside the edge of the viewport along the X axis, as shown in the image below.
This is the problem i'm having difficulties trying to solve. The green circles should be created within the viewport no matter the width of the phones screen.
If anyone knows a solution, it would be greatly appreciated. My gamedev has come to a halt trying to solve this major issue.