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 / SetSpriteSize in Percentage system

Author
Message
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 29th Jan 2015 10:17
Hi.

I want know how can set real sprite size in Percentage system.
in Virtual system when have a sprite with (64 x 64) size can use SetSpriteSize (spr,64,64) and show me this sprite with 64x64 size in game. but in Percentage system I don't know how can calculate real size and use it with SetSpriteSize().

Please Guide me.

Thanks.
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 29th Jan 2015 10:46
This should do it:



Using AppGameKit V2 Tier 1
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 29th Jan 2015 11:06
Thanks Baxslash
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 29th Jan 2015 11:31
A pleasure as always


Using AppGameKit V2 Tier 1

Login to post a reply

Server time is: 2024-05-05 07:14:24
Your offset time is: 2024-05-05 07:14:24