How would one do this? I assume that there's no way to easily detect aspect ratio, am I right? Thanks, Morgan.
Assuming you are making your game fullscreen, then you can simply lookup the ViewportRight(0) and ViewportBottom(0) to determine the screen resolution. Then you can do some quick math to determine the screen ratio that the player is playing in.
width/height = pixel ratio
for example 1920x1080 = 1.78 = 16:9
justifun - can you use an event to get these numbers? How would you look them up?
start a new project....
make a text box object
on start of layout - > set text1.text to "Height:" & ViewportBottom(0) & "Width:" & ViewportRight(0)
they are found in the system section when adding an action.
the (0) in each of them refer's to a specific layer you want lookup
Develop games in your browser. Powerful, performant & highly capable.
justifun - thanks!