View Full Version : I know this is stupid
huydevil
19-07-2004, 11:26 AM
Well well well, I know that I'm asking a very very stupid question but I have to ask because I'm really don't know. I've read a lot of tutorials about game programming, but I don't know what is offset? Sorry but can anyone explain for me? What is a offset ? Is it difference to X,Y coord?
Paulius
19-07-2004, 11:43 AM
It could be anything really, it depends on the context
huydevil
19-07-2004, 11:45 AM
I mean the "offset" in game programming, map scrolling
cairnswm
19-07-2004, 12:05 PM
An offset is the difference detween a point and another reference point.
If we say that the top left hand corner of the screen is offset by 100,100 from the top left hand corner of a map it means that the top left corner of the screen will display the information at position 100,100 of the map.
Of in otherwords
123456789
1AAAAAAAAA
2AAABAAAAA
3AAAAAAAAA
The B in the disagram is offset by X=4; Y=3 within the image.
Does that help?
Huehnerschaender
13-08-2004, 04:38 PM
There are no stupid questions, only stupid answers...
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.