I began my journey on Roblox, learned Roblox-TS, refuged in Typescript, got into web development, got into SCSS, came back, and here’s what I figured for achieving a responsive UI based on my experience:
- Use scale for positioning
- Use offset for sizing
- For any floating effect (e.g. widget relative to the main frame), make the main frame the parent of your widget, and use offset to position your widget instead
- Pay attention to anchor points; your elements are now responsive, but you have to make sure that they know when to move up or right
– Screen elements: e.g., center <0.5, 0.5>, left middle <0, 0.5>, vice versa, etc.
– Floating elements are weirder ones: on the left in the middle relative to parent <1, 0.5>, vice versa, etc.
Some
These are the general bases. Most of the time, they should be fine. However, there are special occasions when you’re meant to divert from it. That’s up to you to decide. Have fun!