Hello, I have a maths related question that I'm sure some forum guru can answer in seconds.
I'm porting some AppGameKit code over to DBPro and have successfully managed to get my UI code working directly in DBP without changing any of the source AppGameKit code. (Other than changing the square brackets in arrays of course)
I however am struggling with AGKs ability to automatically sets sprites sizes when using a size of -1. (So setting with the X and height to -1 will ensure that the image maintains the same aspect regardless of what X is set to.)
I have this working fine, but I'm having trouble working out what X would be when I know Y.
I know that:
Aspect# = Y# / X#
So that when I know what X# is, I can work out Y#. (Y# = X# * Aspect#)
But how do I do this the other way?
When I know what Y# is, how do I work out X#?
I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]