Computer Science Canada Need help for moving smoke without trail |
Author: | Lucy Xu [ Fri May 10, 2013 8:22 pm ] | ||
Post subject: | Need help for moving smoke without trail | ||
What is it you are trying to achieve? i want to make my smoke moving without trail What is the problem you are having? the smoke is moving but there are trail in the screen that i can't clear them Describe what you have tried to solve this problem i try to add cls in the loop and after loop, it doesn't work. Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) <Answer Here>
Please specify what version of Turing you are using <Answer Here> |
Author: | Nathan4102 [ Fri May 10, 2013 8:53 pm ] |
Post subject: | RE:Need help for moving smoke without trail |
You need a delay and a cls at the end of your loop, in that order. If you find your animation is flashy, look up View.Update. |
Author: | Lucy Xu [ Fri May 10, 2013 10:27 pm ] |
Post subject: | RE:Need help for moving smoke without trail |
but the problem is i have other stuff in my loop, so if i did cls, all the things were disappear. i only want trail disappear. |
Author: | Nathan4102 [ Fri May 10, 2013 10:42 pm ] |
Post subject: | RE:Need help for moving smoke without trail |
Unfortunately turing cant clear individual layers. You will need to clear the whole screen, then redraw the smoke and trail. If you only want to clear a section of the screen, you could try drawfillbox(x1, y1, x2, y2, backgroundcolor) . |