Mirage Source
a simple question - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: a simple question (/showthread.php?tid=279)



a simple question - halla - 28-08-2006

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?


- Coke - 28-08-2006

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?


- halla - 28-08-2006

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.


- halla - 28-08-2006

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?


- Robin - 31-08-2006

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)


- halla - 31-08-2006

I already got this done but thanks.


- Robin - 01-09-2006

Sorry, just noticed the dates xD