• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Responsive UIs in Game Maker Studio 2

D

devonhg

Guest
GM Version: 2+
Target Platform: ALL
Download: Github | Pastebin | Marketplace

Links
: ( These are the resources mentioned in the tutorial )
Scaling for Devices
Text Fit Box
Display Scaler

Summary
:
The meat and potatoes of this tutorial talks about positioning things onto the screen using two basic scripts:

responsive_x( 0-12 )

responsive_y( 0-12 )

Fundamentally these scripts break the screen in to 12 "sections", and allows you to position things based on these sections. More information in the tutorial where I instruct on how to make a responsive alert box using these scripts.

Tutorial:
 
F

Fazri Fr

Guest
Hope this video help me! I wanted to finish my HTML5 Game but struggle with the asset scaling and right procedural positioning.
 
T

TinyGamesLab

Guest
Bootstrap for GameMaker is a good idea! One thing that could also be borrowed from it is the prefab objects such as text boxes, buttons, etc... This could help out even more when UI coding becomes a burden.
I've used bootstrap a lot on websites and although you are more-or-less limited it can make development much easier if used with care.
 
J

JealousOfCrows

Guest
Interesting. I often work in relative values into much of my code to kind of create a similar idea. Rather than making it a grid I kind of say "I want this to be always 10% from either side" and so on. Cool stuff. I would love to see more!
 
Top