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
Printable View
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
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.
You should get the project soon. (and <<<Up to the top we go!>>> )
------------------
Website
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.
I want it to be tiled. It is a big tile. It is a back ground. :(
------------------
Website
I want it to be tiled. It is a big tile. It is a back ground. :(
------------------
Website
I want it to be tiled. It is a big tile. It is a back ground. :(
------------------
Website
Sorry about the multaple posts. It wasn't getting back a replay from the server very quickly. :(
------------------
Website
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.
Why can't I just use that procudur for tiles? :confused:
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?
It is just a very big tile. Sometimes the form(and the drawing area) will be bigger or smaller.
<Back to the top>
Do YOu mean foxes as in the one with the fox being chased by the bear?
No he means mine ;)
<<BACK TO THE TOP>>
er.. ***? <back to the top>
:)
<<<back to the top>>>