I'm using scroll to to move the virtual camera around, and i'd like to figure out what the left edge of the visible area is.
The right side is simply "LayoutWidth", but what's the left side?
thanks
[quote:1hms37qb]ViewportBottom(layer)
ViewportLeft(layer)
ViewportRight(layer)
ViewportTop(layer)
Return the viewport boundaries in layout co-ordinates of a given layer. Not all layers have the same viewport if they are parallaxed, scaled or rotated separately.
Ah. It's the paralaxing messing things up. Is there any way to calculate the edge with paralaxing?
Develop games in your browser. Powerful, performant & highly capable.
https://www.scirra.com/manual/126/system-expressions
CanvasToLayer & LayerToCanvas