-
I want to make a game which can extend indefinitely and you need to scroll, but it seems to be very undocumented and hard to create even though it is a somewhat common idea. I have tried many things now including setting the scale mode, display mode, and trying to overwrite the window, however nothing seems to be working. The problem is visible in the debugger, being that no scaling mode actually scales the stage. There should be some option to make the stage both scrollable and extend with a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
The simplest way is to use a normal scale mode with anchor on top left; then you can create a UIScrollable view and ser the xy to 0,0 and wodth height to views.actualVirtualWidth/Height and update it when the screen resizes. Alternatively there is a kproject in the store providing a docking component you can attach to a view to automatically react to the window size Please, let me know if it works for you or need further details |
Beta Was this translation helpful? Give feedback.
Try this: