Computer Science Canada

Help Im In Trouble

Author:  gosho [ Thu Feb 13, 2003 6:24 pm ]
Post subject:  Help Im In Trouble

I have a project to do:

Make a house with the following Features:
a Roof Triangular and then Te right side of a 3d roof.
need to make Windows turn yellow and black in Regular intervals.

Author:  Tony [ Fri Feb 14, 2003 5:33 am ]
Post subject: 

well doesnt sound as a big project, just some drawing assigment Wink

You can use drawfillpolygon to draw triangular roof (or drawline with drawfill)

then you set up a loop with drawfillbox to draw the flashing window.

Author:  gosho [ Fri Feb 14, 2003 12:18 pm ]
Post subject: 

Thanx

But Can you help me how it would work?I did it but it doesent work:(

Author:  Tony [ Fri Feb 14, 2003 3:13 pm ]
Post subject: 

code:

drawfillbox(100,100,200,200,black) %main box
drawline(100,200,150,250,black) %left roof
drawline(150,250,200,200,black) %right roof
drawfill(150,225,black,black) %roof colored

loop
drawfillbox(150,100,160,125,yellow) %open door
delay(500) %wait
drawfillbox(150,100,160,125,black) %close door
delay(500) %wait
end loop

Author:  gosho [ Sat Feb 15, 2003 3:51 am ]
Post subject: 

Sorry To ask again but How can I make Many Stars in the Back Ground Flash from Black to Yellow?I know how to make one Thing flash(thanx to tony) But cant make more then 1 thing Flash in the same loop:(


And by the way What would I use to make a Moon?

Author:  gosho [ Sat Feb 15, 2003 5:48 am ]
Post subject: 

Look at my Project sofar:)

I know its not Finished but Its Half way:)


If you see anything wrong please tell me.

Author:  Tony [ Sat Feb 15, 2003 7:58 am ]
Post subject: 

to make multiple things flash in the same loop, you just place more drawings inside the loop...

such as another window to flash.

the thing is, you got to be careful of timing with delays. You would probably have to turn on second window before turning off first.

You'll figure it out, just try placing more things inside the loop (you can even place another loop inside your loop Very Happy)

As for the moon... its just two circles, a yellow one, and a blackone (it has to be bigger and moved to the side) to cover part of yellow one.


: