Computer Science Canada flashing reduction while ina game |
| Author: | kousha41564 [ Fri Dec 19, 2008 8:13 pm ] | ||
| Post subject: | flashing reduction while ina game | ||
alrigt this is my first rough sketch of a game, i am doing it so it says when u colide, whihc is wworking quite well , but the figure taht moves is flickering. could anyone help me get rid of that ?
|
|||
| Author: | syntax_error [ Fri Dec 19, 2008 8:31 pm ] |
| Post subject: | RE:flashing reduction while ina game |
View.Set look that up along with View.Update F10 is an ally. As is The Turing Walkthrough |
|
| Author: | andrew. [ Fri Dec 19, 2008 9:16 pm ] | ||
| Post subject: | RE:flashing reduction while ina game | ||
You have to set your program to draw the picture in it's own memory and show it on the screen when you want it to. e.g.
You can see in View.Set that the program is now running in offscreenonly mode. This means it draws the image and when you put View.Update, it draws it all at once to the screen. The reason it's flickering is because it is drawing each item individually, but this makes it draw all at once. For more help, follow syntax_error's advice. |
|||
| Author: | kousha41564 [ Fri Dec 19, 2008 9:52 pm ] | ||||
| Post subject: | Re: flashing reduction while ina game | ||||
dosnt work Mod Edit: Remember to use syntax tags! Thanks
|
|||||
| Author: | Tyr_God_Of_War [ Fri Dec 19, 2008 10:18 pm ] |
| Post subject: | Re: flashing reduction while ina game |
cls should go after View.Update. |
|
| Author: | kousha41564 [ Sat Dec 20, 2008 2:12 pm ] |
| Post subject: | RE:flashing reduction while ina game |
thank you very much |
|