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.

Geek Culture / Quick Question...

Author
Message
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 24th Jan 2005 23:53
I have to scale an 800+600 screen to 512*384...

What is the percent of 512 into 800, and 384 into 600?

I can't quite get my collision perfect when using sprites using screen coords on top of objects that are 24*30 pixels, but the pixels are 24*30 on an 800*600 screen, and I haven't a clue what they have scaled down to.

Thanks.

Pincho.

Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 24th Jan 2005 23:58 Edited at: 24th Jan 2005 23:59
..use a calculator

Quote: "What is the percent of 512 into 800, and 384 into 600?"

512 is %64 of 800
384 is %64 of 600

"We make the worst games in the universe."

Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 25th Jan 2005 00:01
Yeah, I don't know how to do percentages, I have forgotten.

So what's 64% of 24, and 64% of 30?

Thanks again!!

Pincho.

Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 25th Jan 2005 00:05
24/100*64

Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 25th Jan 2005 00:10
Yay! Thanks!!!

Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 25th Jan 2005 00:16
And to get the %age: 512/800*100

Besides, why don't you use screen width() and simple maths?

OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 25th Jan 2005 00:21
Probably because he's forgotten how to

Login to post a reply

Server time is: 2024-11-26 20:22:44
Your offset time is: 2024-11-26 20:22:44