Jump to content

Help with some math..


xXMADEXx

Recommended Posts

Hi guys. Im writing a script, but I ran into a problem. I can't figure out the math for this (i know its easy, but kinda bad with math)

So, I have two rectangles and im trying to get it so that one of the rectangles is on a scale of 0-100 based on the other rectangles width. So for example, rec1 (The back rectangle) has a width of 335... Now I want rec2 (The front rectangle) to fill up 50% of rec1. If you understand this, it's kinda hard to explain, please reply. Thanks

- xXMADEXx

Link to comment

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...