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 / Sprite space & pixel space

Author
Message
george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 8th Jul 2012 01:17 Edited at: 8th Jul 2012 01:21
How I can calculate the correspondence between them. I have a ball and I need to set its physics radius, but I don't know how. I know only the size of the sprite 16x16 in pixels
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 8th Jul 2012 08:59
GetSpriteWidth(spriteID)/16.0 should give you a good ratio.


this.mess = abs(sin(times#))
george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 8th Jul 2012 17:34
Thank you baxslash, I accept your answer as a black box to me...

Login to post a reply

Server time is: 2024-11-23 17:48:09
Your offset time is: 2024-11-23 17:48:09