Ok im making a nice bg for my snake game. When I set the form picture to the picture... it looks fine... then I start my game and the snake moves and the background color of the form flashes... and it looks like crap. I dont know how to remove that or fix it.
I then tried to just make a picturebox for it and put all the stuff on it on the form... I start the game and all I see is the picture box...
since the snake and stuff blts to the form itself im guessing
so any help with this?
the flash is the form spam refreshing to compensate you blit'ing directly onto it i think...
Try blt'ing to a picturebox instead?
EDIT:
Or blit the background aswell?
Yeah I made a picturebox and made it not visible then I blted it the same way as the snake and all but it doesnt show it at all. Im not sure why I will have to mess around more.
I just did to the picbox for the rest... I will look up how to do to backbuffer for that then
so that would make it show fine then right?
Posts: 2,742
Threads: 115
Joined: Jun 2006
Reputation:
0
Create a new surface, load the background bmp to it, then at the begining of your game's loop sub, simply have it blted like everything else.
That will make it look fine. (if, of course, you are using a DirectX surfacing technique. Otherwise, I'm not sure)
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
I already got this done but thanks.
Posts: 2,742
Threads: 115
Joined: Jun 2006
Reputation:
0
Sorry, just noticed the dates xD
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?