Results 1 to 5 of 5

Thread: Scrolling madness

  1. #1

    Thread Starter
    Member nXt's Avatar
    Join Date
    May 2001
    Location
    UK
    Posts
    37

    Scrolling madness

    In most of the old zelda games, especially the new oracle ones, it uses a scrolling technique where if the player reaches the edge of the screen, it shows a new area, rather than scrolling as the player moves.

    Has anyone got any idea how i could do this or an example with this scrolling style inplemented in it?

    sorry if i was unclear in my decription, i am tired

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    When their player is even 1 pixel offscreen (use IntersectRect API with the character's RECT and the screen RECT) you would change the ViewX and ViewY respectively.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3

    Thread Starter
    Member nXt's Avatar
    Join Date
    May 2001
    Location
    UK
    Posts
    37
    i've never used either of those api's :/

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Consider the edges of your screen as 4 threshold for your character to step trough, depending on which you will enter approperiate area or scroll the screen to it. You can do it by simply comparing the characters position with each edge. For instance the left threshold trigger would be character.x<0
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Hum your game is in BitBlt, right? Are you storing the player's coordinates as PlayerX/Y (or something similar) and the screen's coordinates as ScreenX/Y?...
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

Posting Permissions

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



Click Here to Expand Forum to Full Width