How do I scale a mouse cursor as a layout scales?
So say I display my game at 200%, how would I make the mouse cursor do the same?
A small hunch:
Compare two values in system, specifically LayoutScale in the first, and say the second value would be 2.
If =/> (both equal and greater) to two, then double the cursor's width/height, otherwise, add an else that resets it to default size.
You could hide the mouse cursor and just set a sprite to mouse.x, mouse.y , it should scale with the rest of your game..
I have not been able to scale the cursor at all. Any ideas?
You cannot change the windows system mouse cursor. What you can do, as LittleStain said, is basically make your own mouse cursor by hiding the windows mouse and making your own mouse cursor sprite set to mouse.x, mouse.y every tick.
You can change the mouse cursor using "Set Cursor From Sprite" on the Mouse.
However it seems as though this cannot be scaled. Just looking for confirmation or a solution.
No, you can't manipulate the cursor-sprite. You can set the cursor to None and just have the sprite track the mouse coordinates every tick. You can do whatever you want to the sprite then.
Any technical reason why the "Set Cursor From Sprite" can't be scaled or manipulated?
Develop games in your browser. Powerful, performant & highly capable.
Thanks! Good to know