×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    10

    How to create a "moveable" Game?

    Hello,

    one often comes accross adventure games where a player can be moved around. One has the impression, that the background is moving and therefore the player itself is walking, a ship is flying or a car is driving.

    But who to realize this within the paint() function?


    Only the technic is wanted, no source code!

    Thanks a lot!

  2. #2
    Registered User
    Join Date
    May 2003
    Posts
    10
    Anybody knows?

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    82
    I'm not sure I've fully undestood what you asked.
    If you asked for a scrolling like Mario, R-Type or something like that I suggest you look for a tiled background. There's a lot of documents of the net for tiles map.
    Basically you have an array with the number of tile. Each tile is an image of for example 16x16 pixels. If you assemble them, you'll have the background. While moving x,y position of the player in this array, you get the background moving (you just draw the correct portion of the background)

    Hope it helps.
    FatalError

  4. #4
    Registered User
    Join Date
    May 2003
    Posts
    10
    You understood my question quit well, but i didn't know the technique of the tiles! Thank you very much for this information.

Posting Permissions

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