Computer Science Canada Object layers in turing |
Author: | Varsteil [ Fri Sep 30, 2011 7:59 pm ] |
Post subject: | Object layers in turing |
What is it you are trying to achieve? To have my sun rise, then set, and have my sky color change accordingly. What is the problem you are having? My Sun overlaps my house and green grass I can't figure out how to use the correct color code, since there's a huge gap between the evening and morning colors Describe what you have tried to solve this problem Put my grass and building in loop to draw and draw them on top of grass (Couldn't figure out anything about colors) Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) File Attached Please specify what version of Turing you are using 4.1 |
Author: | Tony [ Fri Sep 30, 2011 8:24 pm ] |
Post subject: | RE:Object layers in turing |
Why do you have a delay after drawing every line? |
Author: | Varsteil [ Fri Sep 30, 2011 8:34 pm ] |
Post subject: | Re: RE:Object layers in turing |
Tony @ Fri 30 Sep, 2011 8:24 pm wrote: Why do you have a delay after drawing every line?
I noticed that if I don't have a delay, it would just go over the building and grass, but now that I put in the delay, it redraws the line, but fails to fill the area. |
Author: | Tony [ Fri Sep 30, 2011 8:53 pm ] |
Post subject: | RE:Object layers in turing |
it would be the same animation. Delays just pause in between every step. |
Author: | Varsteil [ Fri Sep 30, 2011 8:56 pm ] |
Post subject: | Re: Object layers in turing |
Thanks for the info I fixed the drawfill issue, I had to change the co-ordinates of the drawfill to match the parts the sun overlapped I'm still having trouble with my sky color though [img]http://imageshack.us/photo/my-images/692/capturetxb.jpg/[/img] The picture shows my code, in it, I'm trying to draw a blue sky (It's not in the image, but above the first line, it says c:=53) Then as my sun sets, I want to change my sky color to 114 and lower the color to match the sunset. I tried lowering the sky color on it's own but, when I did c:=c-1, it went down by 1 color and just stayed there |