Jump to content

a question


xTravax

Recommended Posts

Posted

hello there

i am looking for some easy method how to fit any image or dx rectangle on any resolution without always using calculator and calculating or doing anything complex

for text scale to fit on all resolutions i saw a post from Feche

local scale = (1 / 1080) * sy-- made on 1920x1080 resolution with scale 1 and dividing with 1080 and * players height 

is there any simple method to make images and rectangles fit perfect on all resolutions like above example?

thanks in advance

Posted

Perhaps a table with all coordinates and then loop through the table and fit them, not tested, should be possible.

"If debugging is the process of removing software bugs, then programming must be the process of putting them in."

Posted

The calculation in the loop but it'll be easier bcuz you'll need to write the calculation once and not every line

"If debugging is the process of removing software bugs, then programming must be the process of putting them in."

  • Moderators
Posted

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted

that could help me later but thats not exactly what im searching for

if an icon for example is 128x128 fine on 1920x1080 resolution,on 800x600 resolution it will be seriously too huge

how could i simply scale it so that it gets width and height from screen size?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...