PDA

Click to See Complete Forum and Search --> : Problems With BltBit!


*Super Sniper*
Feb 16th, 2000, 11:46 AM
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 (http://www.kaynor.net)

Fox
Feb 16th, 2000, 05:30 PM
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)

------------------
fox_mccloud@gmx.net
...
Every program can be reduced to one instruction which doesn't work.

*Super Sniper*
Feb 17th, 2000, 07:59 AM
You should get the project soon. (and <<<Up to the top we go!>>> )

------------------
Website (http://www.kaynor.net)

Fox
Feb 17th, 2000, 03:04 PM
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
-

------------------
fox_mccloud@gmx.net
...
Every program can be reduced to one instruction which doesn't work.

*Super Sniper*
Feb 18th, 2000, 06:54 AM
I want it to be tiled. It is a big tile. It is a back ground. :(

------------------
Website (http://www.kaynor.net)

*Super Sniper*
Feb 18th, 2000, 06:55 AM
I want it to be tiled. It is a big tile. It is a back ground. :(

------------------
Website (http://www.kaynor.net)

*Super Sniper*
Feb 18th, 2000, 06:55 AM
I want it to be tiled. It is a big tile. It is a back ground. :(

------------------
Website (http://www.kaynor.net)

*Super Sniper*
Feb 18th, 2000, 08:50 AM
Sorry about the multaple posts. It wasn't getting back a replay from the server very quickly. :(

------------------
Website (http://www.kaynor.net)

Fox
Feb 19th, 2000, 11:55 AM
Well, slipt your BG up in tiles and store the indexes in a map. However it's slower than draw one big BG...

------------------
fox_mccloud@gmx.net
...
Every program can be reduced to one instruction which doesn't work.

*Super Sniper*
Feb 23rd, 2000, 08:12 AM
Why can't I just use that procudur for tiles? :confused:

Fox
Feb 23rd, 2000, 07:35 PM
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?

*Super Sniper*
Feb 24th, 2000, 07:35 AM
It is just a very big tile. Sometimes the form(and the drawing area) will be bigger or smaller.

*Super Sniper*
Feb 25th, 2000, 03:01 PM
<Back to the top>

Euan
Feb 25th, 2000, 05:08 PM
Do YOu mean foxes as in the one with the fox being chased by the bear?

Fox
Feb 25th, 2000, 07:42 PM
No he means mine ;)

*Super Sniper*
Mar 3rd, 2000, 12:53 PM
<<BACK TO THE TOP>>

KENNNY
Mar 3rd, 2000, 11:48 PM
er.. ***? <back to the top>
:)

*Super Sniper*
Mar 5th, 2000, 10:44 AM
<<<back to the top>>>

*Super Sniper*
Mar 12th, 2000, 07:37 AM