I have a responsive site (horizontal and vertical).
The top & left co-ordinates change as the stage is resized in the browser:
However - if I want to get the width, that stays the same when the stage is resized:
I am trying to detect a collision - so that works when the site is full size - but resizing it breaks collision detection as x & y co-ordinates change with the size of the stage - and width doesn't.
How can I either get responsive widths - or fixed size x & y?
Retrieving data ...