Results 1 to 19 of 19

Thread: Problems With BltBit!

  1. #1

    Thread Starter
    Lively Member *Super Sniper*'s Avatar
    Join Date
    Jan 2000
    Location
    Portland, OR
    Posts
    81

    Post

    I copyied a demo(I think it was foxes) that worked. Then I modified it for my game and it doesn't draw the pictures WHY? How could I fix it?

    ------------------
    Website

  2. #2
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Post

    Hm.. without knowing what you changed I can't know what's wrong .

    You can send me the project if you want, I'll show what's wrong... (If I find time)

    ------------------
    [email protected]
    ...
    Every program can be reduced to one instruction which doesn't work.


  3. #3

    Thread Starter
    Lively Member *Super Sniper*'s Avatar
    Join Date
    Jan 2000
    Location
    Portland, OR
    Posts
    81

    Post

    You should get the project soon. (and <<<Up to the top we go!>>> )

    ------------------
    Website

  4. #4
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Post

    I just had a look for ~5 seconds and saw your problems:

    a) AutoRedraw of the picture buffer must be TRUE

    b) You draw the picture too many times and to far away

    Look:

    -
    'Your code (this method is thought for tiles)
    For A = 0 To picGameArea.Width / BackGround.W
    For B = 0 To picGameArea.Height / BackGround.H
    'Think: A * BG.w is too far away ;
    BitBlt BackhDC, A * BackGround.W, B * BackGround.H, BackGround.W, BackGround.H, BackGround.DC, 0, 0, vbSrcCopy
    Next
    Next

    '---

    'My code (a bit shorter)
    BitBlt BackhDC, 0, 0, BackGround.W, BackGround.H, BackGround.DC, 0, 0, vbSrcCopy
    -

    ------------------
    [email protected]
    ...
    Every program can be reduced to one instruction which doesn't work.


  5. #5

    Thread Starter
    Lively Member *Super Sniper*'s Avatar
    Join Date
    Jan 2000
    Location
    Portland, OR
    Posts
    81

    Post

    I want it to be tiled. It is a big tile. It is a back ground.

    ------------------
    Website

  6. #6

    Thread Starter
    Lively Member *Super Sniper*'s Avatar
    Join Date
    Jan 2000
    Location
    Portland, OR
    Posts
    81

    Post

    I want it to be tiled. It is a big tile. It is a back ground.

    ------------------
    Website

  7. #7

    Thread Starter
    Lively Member *Super Sniper*'s Avatar
    Join Date
    Jan 2000
    Location
    Portland, OR
    Posts
    81

    Post

    I want it to be tiled. It is a big tile. It is a back ground.

    ------------------
    Website

  8. #8

    Thread Starter
    Lively Member *Super Sniper*'s Avatar
    Join Date
    Jan 2000
    Location
    Portland, OR
    Posts
    81

    Post

    Sorry about the multaple posts. It wasn't getting back a replay from the server very quickly.

    ------------------
    Website

  9. #9
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Post

    Well, slipt your BG up in tiles and store the indexes in a map. However it's slower than draw one big BG...

    ------------------
    [email protected]
    ...
    Every program can be reduced to one instruction which doesn't work.


  10. #10

    Thread Starter
    Lively Member *Super Sniper*'s Avatar
    Join Date
    Jan 2000
    Location
    Portland, OR
    Posts
    81

    Post

    Why can't I just use that procudur for tiles?
    Website

    Send an e-mail to [email protected] to get a sample of my games.

    1. Hardware: The parts of a computer system that can be kicked.
    2. f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.
    3. Bad command or file name. Go stand in the corner.
    4. Never trust a computer you can't throw out the window.

  11. #11
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Post

    Oh, you can.

    Look, say the BG is 300x200 and one tile is 10x10 so you have a map which is Map(30,20) and a tile array with 600 tiles. That doesn't make any sense, it's better and faster to draw the BG with one call.
    But if you have a tile array with some grass or flower tiles and draw them more than once on the screen, then it's better to make it tile based.

    Is that ok?

  12. #12

    Thread Starter
    Lively Member *Super Sniper*'s Avatar
    Join Date
    Jan 2000
    Location
    Portland, OR
    Posts
    81

    Post

    It is just a very big tile. Sometimes the form(and the drawing area) will be bigger or smaller.
    Website

    Send an e-mail to [email protected] to get a sample of my games.

    1. Hardware: The parts of a computer system that can be kicked.
    2. f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.
    3. Bad command or file name. Go stand in the corner.
    4. Never trust a computer you can't throw out the window.

  13. #13

    Thread Starter
    Lively Member *Super Sniper*'s Avatar
    Join Date
    Jan 2000
    Location
    Portland, OR
    Posts
    81

    Post

    <Back to the top>
    Website

    Send an e-mail to [email protected] to get a sample of my games.

    1. Hardware: The parts of a computer system that can be kicked.
    2. f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.
    3. Bad command or file name. Go stand in the corner.
    4. Never trust a computer you can't throw out the window.

  14. #14
    New Member
    Join Date
    Feb 2000
    Location
    Geelong, Vic, Aus
    Posts
    8

    Post

    Do YOu mean foxes as in the one with the fox being chased by the bear?

  15. #15
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Post

    No he means mine

  16. #16

    Thread Starter
    Lively Member *Super Sniper*'s Avatar
    Join Date
    Jan 2000
    Location
    Portland, OR
    Posts
    81

    Post <HELP ME NOW>

    <<BACK TO THE TOP>>
    Website

    Send an e-mail to [email protected] to get a sample of my games.

    1. Hardware: The parts of a computer system that can be kicked.
    2. f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.
    3. Bad command or file name. Go stand in the corner.
    4. Never trust a computer you can't throw out the window.

  17. #17
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355

    Post

    er.. ***? <back to the top>

  18. #18

    Thread Starter
    Lively Member *Super Sniper*'s Avatar
    Join Date
    Jan 2000
    Location
    Portland, OR
    Posts
    81

    Post Answer my question!

    <<<back to the top>>>
    Website

    Send an e-mail to [email protected] to get a sample of my games.

    1. Hardware: The parts of a computer system that can be kicked.
    2. f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.
    3. Bad command or file name. Go stand in the corner.
    4. Never trust a computer you can't throw out the window.

  19. #19

    Thread Starter
    Lively Member *Super Sniper*'s Avatar
    Join Date
    Jan 2000
    Location
    Portland, OR
    Posts
    81

    Post

    Website

    Send an e-mail to [email protected] to get a sample of my games.

    1. Hardware: The parts of a computer system that can be kicked.
    2. f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.
    3. Bad command or file name. Go stand in the corner.
    4. Never trust a computer you can't throw out the window.

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