Computer Science Canada background |
Author: | dying to live [ Thu Oct 28, 2004 9:27 am ] | ||
Post subject: | background | ||
can someone help me make a background for my animation/game thing. im trying to make a ufo fly above a town at night time when you press a direction. here is my code so far.
can anyone help me cuz when i use the "pic.new" and "pic.copy" command it takes away the background when i run it. |
Author: | Delos [ Thu Oct 28, 2004 10:16 am ] |
Post subject: | |
Ok... For this you'll need to look up on View.Update, and flicker reduction. Conventiantly, there just happens to be a great tutorial on the very subject! Amazing what you'll find in that section: No more screen flickers! by tony The idea is that you'll consider the screen in two layers. You have the background, and the foreground. Each frame, you redraw the background, then you update the position of the objects (foreground) over the background. Then you View.Update the whole screen - effectively producing a clean animation. Enjoy. |
Author: | dying to live [ Fri Oct 29, 2004 7:19 am ] |
Post subject: | |
yeah so that didnt help me at all... |
Author: | gigaman [ Fri Oct 29, 2004 7:51 am ] | ||
Post subject: | |||
Here is a bit of an update for flikering use the setscreen command
then after every time it draw the object use View.Update |
Author: | AsianSensation [ Fri Oct 29, 2004 8:10 pm ] |
Post subject: | |
I think he wants people to make a background for him. I am assuming using drawline and drawoval and stuff like that. If that's what you want, search for Pic~2~Code by Delta, it's quite useful. |