|
-
Feb 16th, 2000, 12:46 PM
#1
Thread Starter
Lively Member
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
-
Feb 16th, 2000, 06:30 PM
#2
-
Feb 17th, 2000, 08:59 AM
#3
Thread Starter
Lively Member
You should get the project soon. (and <<<Up to the top we go!>>> )
------------------
Website
-
Feb 17th, 2000, 04:04 PM
#4
PowerPoster
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.
-
Feb 18th, 2000, 07:54 AM
#5
Thread Starter
Lively Member
I want it to be tiled. It is a big tile. It is a back ground. 
------------------
Website
-
Feb 18th, 2000, 07:55 AM
#6
Thread Starter
Lively Member
I want it to be tiled. It is a big tile. It is a back ground. 
------------------
Website
-
Feb 18th, 2000, 07:55 AM
#7
Thread Starter
Lively Member
I want it to be tiled. It is a big tile. It is a back ground. 
------------------
Website
-
Feb 18th, 2000, 09:50 AM
#8
Thread Starter
Lively Member
Sorry about the multaple posts. It wasn't getting back a replay from the server very quickly. 
------------------
Website
-
Feb 19th, 2000, 12:55 PM
#9
PowerPoster
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.
-
Feb 23rd, 2000, 09:12 AM
#10
Thread Starter
Lively Member
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.
-
Feb 23rd, 2000, 08:35 PM
#11
PowerPoster
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?
-
Feb 24th, 2000, 08:35 AM
#12
Thread Starter
Lively Member
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.
-
Feb 25th, 2000, 04:01 PM
#13
Thread Starter
Lively Member
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.
-
Feb 25th, 2000, 06:08 PM
#14
New Member
Do YOu mean foxes as in the one with the fox being chased by the bear?
-
Feb 25th, 2000, 08:42 PM
#15
-
Mar 3rd, 2000, 01:53 PM
#16
Thread Starter
Lively Member
<HELP ME NOW>
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.
-
Mar 4th, 2000, 12:48 AM
#17
Hyperactive Member
er.. ***? <back to the top>
-
Mar 5th, 2000, 11:44 AM
#18
Thread Starter
Lively Member
Answer my question!
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.
-
Mar 12th, 2000, 08:37 AM
#19
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|