| Mirage Source http://miragesource.net/forums/ |
|
| a simple question http://miragesource.net/forums/viewtopic.php?f=201&t=449 |
Page 1 of 1 |
| Author: | halla [ Mon Aug 28, 2006 6:27 pm ] |
| Post subject: | a simple question |
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? |
|
| Author: | Coke [ Mon Aug 28, 2006 6:29 pm ] |
| Post subject: | |
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? |
|
| Author: | halla [ Mon Aug 28, 2006 8:53 pm ] |
| Post subject: | |
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. |
|
| Author: | Lea [ Mon Aug 28, 2006 9:21 pm ] |
| Post subject: | |
blit the background to the backbuffer before you draw the snake. Dont draw the background straight to your picture box |
|
| Author: | halla [ Mon Aug 28, 2006 11:32 pm ] |
| Post subject: | |
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? |
|
| Author: | Robin [ Thu Aug 31, 2006 7:18 pm ] |
| Post subject: | |
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) |
|
| Author: | halla [ Thu Aug 31, 2006 11:08 pm ] |
| Post subject: | |
I already got this done but thanks. |
|
| Author: | Robin [ Fri Sep 01, 2006 12:22 am ] |
| Post subject: | |
Sorry, just noticed the dates xD |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|