Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Object layers in turing
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Varsteil




PostPosted: 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



c1p85d912hx.t
 Description:
Here's the file

Download
 Filename:  c1p85d912hx.t
 Filesize:  910 Bytes
 Downloaded:  177 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Fri Sep 30, 2011 8:24 pm   Post subject: RE:Object layers in turing

Why do you have a delay after drawing every line?
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Varsteil




PostPosted: 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.
Tony




PostPosted: 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Varsteil




PostPosted: 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: