Posted: Sun Dec 12, 2004 8:05 pm Post subject: i am in highschool, needing help from professionals.please..
i have a project in my Computer Programming Class,and i have never taken the class before ever, and i was late when joining it, because i transferred schools, anyways...i have this project that i am struggling with, heres the problem..
i cant figure out how to move the moon and all upwards, and get the chimney correct, and make the roof on the right not have the lines through it, if someone can help me with it, it would be muchly appreciated, or if someone can tutor me online with MSN or something through here. and one more thing, if u can help me simplify some of my commands in my program, that would be helpful also.
thanks
richard (newbe)
house1.t
Description:
the house project im working on, and need help with thanks
Though I haven't looked over your code much, I'd guess that's the problem you are having with your line through the roof. May also be the problem with your chimney. You're code is very uncommented though, so it's more difficult to help.
As for simplfying stuff, you could try use variables to store the position of your puffs of cloud, and of your moon. That way, you could make things simpler and also make the objects move more smoothly.
sevendust
Posted: Sun Dec 12, 2004 9:03 pm Post subject: (No subject)
i dont understand what you mean Cervantes, by storing variables...i am not a very bright student, another classmate assisted a few things with me in this project, but nothing i cudnt handle..umm another thing, the things u made , where abouts do i put them?
sevendust
Posted: Sun Dec 12, 2004 9:05 pm Post subject: (No subject)
Cervantes, those drawfillboxes u made for me, cud u put them into the code, because im not sure where to put them, thanks, that wud be helpful
Cervantes
Posted: Sun Dec 12, 2004 9:07 pm Post subject: (No subject)
Well, if by "the things u made", you mean the bits of code I posted, I'm scared.
Take those bits of code and put them in a new Turing program. one bit at a time (that means 2 lines at a time). Notice the difference.
Perhaps we should ignore the bit about storing information as variables for now.
sevendust
Posted: Sun Dec 12, 2004 9:09 pm Post subject: (No subject)
oh ok thank you
sevendust
Posted: Sun Dec 12, 2004 9:16 pm Post subject: (No subject)
thank you cervantes, that little push got me to fix the whole side of my house, now the chimney, and can u help me with the moon?
Cervantes
Posted: Sun Dec 12, 2004 9:30 pm Post subject: (No subject)
I don't know what you are trying to do with your moon. but I made this, using your code, to show you how to move it up, if that's what you wanted
code:
var Y := 350
process mn
loop
drawfilloval (x2, Y + 30, 50, 50, 30)
drawfilloval (x2 - 20, Y + 10, 5, 5, 28)
drawfilloval (x2 - 11, Y + 30, 5, 5, 26)
drawfilloval (x2 - 30, Y + 29, 5, 4, 28)
drawfilloval (x2 - 4, Y, 4, 5, 27)
drawfilloval (x2 + 26, Y + 40, 5, 2, 29)
delay (100)
x2 -= 1
Y += 1
drawfilloval (x2 + 1, 380, 50, 50, black)
exit when x2 = 148
end loop
end mn
fork mn
note how the moon leave's a gross looking trail behind it. You'll need to fix that up.
Sponsor Sponsor
sevendust
Posted: Sun Dec 12, 2004 9:32 pm Post subject: (No subject)
thank you very much....how long have you been working with turing?
sevendust
Posted: Sun Dec 12, 2004 9:39 pm Post subject: (No subject)
heres the program once again, run it and can u try to figure out how to move the one version back over to that it covers the trail or the real grey moon please
Posted: Sun Dec 12, 2004 9:59 pm Post subject: (No subject)
It's hard, because you are using processes. Ordinarily, you'd just cls then redraw everything. But clsing in one process while a delay is going in another process would not be good. Either somewhow find a way to get rid of that streak behind the moon, or put it all in one main loop and use a cls.
sevendust
Posted: Sun Dec 12, 2004 10:05 pm Post subject: (No subject)
what is cls, and how do i use it?
Neo
Posted: Sun Dec 12, 2004 10:15 pm Post subject: (No subject)
cls is used to clear the screen. If you want to clear the moon trail without using cls you have to draw a black circle alittle bigger than the moon, behind the moon.
code:
process mn
loop
drawfilloval (x2 + 1, Y + 30, 51, 51, black)
drawfilloval (x2, Y + 30, 50, 50, 30)
drawfilloval (x2 - 20, Y + 10, 5, 5, 28)
drawfilloval (x2 - 11, Y + 30, 5, 5, 26)
drawfilloval (x2 - 30, Y + 29, 5, 4, 28)
drawfilloval (x2 - 4, Y, 4, 5, 27)
drawfilloval (x2 + 26, Y + 40, 5, 2, 29)
delay (100)
x2 -= 1
Y += 1
exit when x2 = 148
end loop
end mn
[/quote]
Cervantes
Posted: Sun Dec 12, 2004 10:19 pm Post subject: (No subject)
Mind you, doing that would cause the moon to erase the stars.