Quantcast
Channel: Super Mario Bros. X Forums
Viewing all articles
Browse latest Browse all 2636

Guides • (SMBX2 LunaLua) How to make a custom screen size for your levels/worlds!

$
0
0
Tired of the same 4:3 size? This will help, and it's not just 16:9, but its anything!
Copy and paste this code into your lunalua!

Code:

function onStart()    Graphics.setMainFramebufferSize(width, height) --Enter width and height here.endfunction onCameraUpdate()    camera.width, camera.height = Graphics.getMainFramebufferSize() --Don't change anything here.end
Calculate aspect ratio
Screen sizes you can use:
Gameboy Advance: 900x600
Classic Nintendo: 600x600
16:9: 1072x603
Don't make it too small, or it won't look good. You can use the handycam zoom. You also have to modify some stuff if the level size is 4:3 or vertical or you could use the handycam zoom to make things quicker, the world map design has the be changed to the size too.

Hope this helped, have a good time! ;)

You don't need to credit me cus it's not really a custom script, it's just to change aspect ratio, you can if you want.
Proof:
Image

Statistics: Posted by simonthecomputerguru — Tue Aug 27, 2024 2:05 pm



Viewing all articles
Browse latest Browse all 2636

Trending Articles