Results 1 to 5 of 5

Thread: I know this is stupid

  1. #1

    I know this is stupid

    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?

  2. #2

    I know this is stupid

    It could be anything really, it depends on the context

  3. #3

    I know this is stupid

    I mean the "offset" in game programming, map scrolling

  4. #4
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    I know this is stupid

    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
    Code:
     123456789
    1AAAAAAAAA
    2AAABAAAAA
    3AAAAAAAAA
    The B in the disagram is offset by X=4; Y=3 within the image.

    Does that help?
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  5. #5

    I know this is stupid

    There are no stupid questions, only stupid answers...
    <a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •