Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / A little function to help with button placement for newly resized images.

Author
Message
ThrOtherJoJo
12
Years of Service
User Offline
Joined: 24th Mar 2012
Location: California
Posted: 10th May 2014 22:08 Edited at: 13th May 2014 19:50
This code is only used for Percentage based system in Teir 2.

I put code for Tier 1 but I work solely in Tier 2.

Here is the little formula I used to get buttons to appear in the same location in relation to the newly resized image after you have set the sprite size using the SetSpriteSize() function.

I think this is helpful when you have sprite windows of different sizes and you want them to have their own buttons and such.
This will get the buttons to remain in the exact position across different resolutions.

Tier 2:


Tier 1:


Thanks to Naphier for pointing out the GetSpriteHeight function to me. That got me moving forward.

Joeisms
KG2Entertainment.com

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-04-28 09:30:53
Your offset time is: 2024-04-28 09:30:53