Computer Science Canada flashing lights loop with falling snow problem |
Author: | Bozey [ Sun Nov 28, 2010 7:38 pm ] | ||
Post subject: | flashing lights loop with falling snow problem | ||
What is it you are trying to achieve? someone to guide me What is the problem you are having? falling snow loop and flashing lights loop not working together and cant split them Describe what you have tried to solve this problem broke up to procs and tryed removing offscreenonly (worked but had flickering) 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 4.0.3 |
Author: | TokenHerbz [ Sun Nov 28, 2010 11:15 pm ] |
Post subject: | Re: flashing lights loop with falling snow problem |
Okay, i'm going to help you out a bit. 1st with YOUR program. remove all the "delays" in it, and Add a delay (20) maybe (50) AFTER the "View.Update" at the bottom of the loop. you have your snow flakes appearing after they hit the ground anywhere on the map, so "dots" tend to appear out of no where, you should fix this by spawning them up in the clouds. its not so bad when you first start the picture, as it gives you a sense that its already been snowing. i have no idea what you mean about "Lights"... |
Author: | Bozey [ Mon Nov 29, 2010 7:44 am ] |
Post subject: | Re: flashing lights loop with falling snow problem |
ok thank you this is what i meant when i said lights this is how it is suppose to work, (these will be on the tree) loop drawfilloval (460, 100, 5, 5, brightblue) drawfilloval (560, 100, 5, 5, brightblue) drawfilloval (580, 50, 5, 5, brightblue) drawfilloval (440, 50, 5, 5, brightblue) drawfilloval (480, 150, 5, 5, brightblue) drawfilloval (540, 150, 5, 5, brightblue) drawfilloval (510, 160, 5, 5, brightblue) drawfilloval (510, 110, 5, 5, brightblue) drawfilloval (510, 60, 5, 5, brightblue) delay (500) drawfilloval (460, 100, 5, 5, red) drawfilloval (560, 100, 5, 5, red) drawfilloval (580, 50, 5, 5, red) drawfilloval (440, 50, 5, 5, red) drawfilloval (480, 150, 5, 5, red) drawfilloval (540, 150, 5, 5, red) drawfilloval (510, 160, 5, 5, red) drawfilloval (510, 110, 5, 5, red) drawfilloval (510, 60, 5, 5, red) delay (500) end loop |
Author: | copthesaint [ Mon Nov 29, 2010 12:16 pm ] | ||
Post subject: | Re: flashing lights loop with falling snow problem | ||
|
Author: | TokenHerbz [ Mon Nov 29, 2010 2:12 pm ] |
Post subject: | RE:flashing lights loop with falling snow problem |
don't use his code, how delays work is it "pauses" your game. you don't want to use so many of them, infact the only reason i use them is to slow down the speed of the game. you definately dont want to have more then 1 delays in your loop when your trying to do this. Add another variable for the lights, and use it how you wish to but the idea would be to "Turn lights red if variable is 1 status, and turn lights blue if this variables another status" and run that in your main loop WITH the falling snow, so everything runs smoothly. attempt this and i'll assist you further. |
Author: | copthesaint [ Mon Nov 29, 2010 3:30 pm ] |
Post subject: | RE:flashing lights loop with falling snow problem |
Lol I wasn't posting it for him to use. Its just to show him how you can organize all of the flakes the way it seems he wanted to... from what he posted he should understand what I did from that example. Of course I wasn't posting it for him to use to hand in or something... it was just to help him... |
Author: | TokenHerbz [ Tue Nov 30, 2010 8:34 am ] |
Post subject: | RE:flashing lights loop with falling snow problem |
I don't think its helpful to him because I feel he wouldn't be able to understand it, having limited knowledge in the topic, Judging by his original code. So we should first assist him at his level of knowledge to allow him to grasp the basic ideas behind whats trying to be accomplished, which then later could be put to much more "efficient and effective" code. |