Discussion Board

Results 1 to 4 of 4

Hybrid View

  1. #1
    Registered User balone's Avatar
    Join Date
    May 2003
    Posts
    10
    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 balone's Avatar
    Join Date
    May 2003
    Posts
    10
    Anybody knows?

  3. #3
    Regular Contributor FatalError's Avatar
    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 balone's Avatar
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved