Computer Science Canada Animating with a static background |
Author: | krazykipa [ Tue Dec 16, 2008 5:12 pm ] | ||
Post subject: | Animating with a static background | ||
Hi there everyone, Just wondering, for this game I'm making there's an animation of a helicopter which must move against a still background. The way I have it so far is that the background must be drawn each time through the loop due to the Draw.Cls It works fine at home, but since my school's computers are crap, the ~1Mb background picture lags them up like... well, you get the point... Anyways, I was just wondering if I could set the background to be static and unperturbed by the Draw.Cls so as to reduce lag and allow me to pass CompSci ![]() Thanks! Oh, here's some code:
|
Author: | andrew. [ Wed Dec 17, 2008 6:04 pm ] |
Post subject: | RE:Animating with a static background |
Look up using sprites. Basically, you make your helicopter a sprite and when you change the x and y values, the picture is automatically redrawn without using cls. |