Positioning Based on Percentages
xJadonx
Member, PRO Posts: 46
I'm wanting to put a score system on the top of the screen. Is there a way to have an actor automatically put it self to the top of the screen without changing the values manually for each screen resolution using percentages or something along those lines?
Comments
How about using game.Display Size.Height?
Example:
Change Attribute: self.position.Y To: game.Display Size.Height - 45
You can change the '45' to what ever you need.
If you want it to be a certain percentage of the screen height, you can multiply it by a number smaller than 1. So for example if you want it to be 3/4 of the way up the screen it would look like this:
Change Attribute: self.position.Y To: game.Display Size.Height * .75