So I rotated all of my layers except the GUI layer by 180�. I also have a sprite that should be at mouse x,y.
So I got this math (LayoutWidth is the same as WindowWidth, LayoutHeight is several times bigger than WindowHeight with a constant Y scroll from LayoutHeight towards 0):
Sprite set position to
X = LayoutWidth-Mouse.X
Y = (LayoutHeight-WindowHeight)+(LayoutHeight-Mouse.Y)
The scroll is -0.10px every tick, and with that the difference between the mouseY and SpriteY gets bigger and bigger every tick.
What part am I missing here?
Mouse.X(LayerNumber) will return the position in the specified layer according to its angle.
When dealing with rotated layers/layouts, that's generally the issue.
Develop games in your browser. Powerful, performant & highly capable.
Well, that does the trick, thanks.