
-----------------------------------
TheBboy
Sun Oct 07, 2012 10:16 pm

cannot find the solution
-----------------------------------
What is it you are trying to achieve?



What is the problem you are having?

when ever someone chooses another color the screen goes white if someone chooses the first if statement it works fine

Describe what you have tried to solve this problem

i tired replacing my end if

Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)




var colorr : int
var coloor : int
put "What color do you want it from the outside ? "
get colorr
if colorr = 6 then
    %House
    drawfillbox (0, 0, 640, 90, green)     %grass
    drawfillbox (0, 90, 640, 400, brightblue)     %sky
        %roof line's
    drawline (250, 170, 370, 260, 1)
    drawline (450, 170, 370, 260, 1)
    drawline (250, 170, 450, 170, 1)
    drawfill (370, 180, 40, 1)
    drawline (500, 180, 370, 260, 1)
    drawline (450, 170, 500, 180, 1)
    drawfill (470, 190, 40, 1)
    drawline (450, 170, 370, 260, black)
    %house or building base of front and back
    drawfillbox (250, 40, 450, 170, colorr)
    drawline (450, 40, 500, 90, colorr)
    drawline (500, 90, 500, 180, colorr)
    drawline (500, 180, 450, 170, colorr)
    drawfill (470, 130, colorr, colorr)
    drawline (450, 40, 450, 170, black)
    end if
    get coloor
    if coloor = 7 then
    %house or building base of front and back
    drawfillbox (250, 40, 450, 170, coloor)
    drawline (450, 40, 500, 90, coloor)
    drawline (500, 90, 500, 180, coloor)
    drawline (500, 180, 450, 170, coloor)
    drawfill (470, 130, coloor, coloor)
    drawline (450, 40, 450, 170, black)
    end if
%Sunset
var x, y, x1, y1 : int
x := 20
y := 150
x1 := 370
y1 := 210
loop
    drawfilloval (x, y, 30, 30, yellow)
    delay (500)
    drawfilloval (x, y, 30, 30, brightblue)
    x := x + 7
    y := y + 5
    exit when x > 370
    exit when y >400
end loop
loop
    drawfilloval (x, y, 30, 30, yellow)
    delay (500)
    drawfilloval (x, y, 30, 30, brightblue)
    x := x + 7
    y := y - 5
    exit when x1 > 640
end loop




Please specify what version of Turing you are using


-----------------------------------
Tony
Mon Oct 08, 2012 1:13 am

Re: cannot find the solution
-----------------------------------
What is it you are trying to achieve?


-----------------------------------
TheBboy
Mon Oct 08, 2012 10:39 am

Re: cannot find the solution
-----------------------------------
sorry I tired it still doesn't work

-----------------------------------
evildaddy911
Mon Oct 08, 2012 10:43 am

RE:cannot find the solution
-----------------------------------
you can't edit a post once it's replied to, just post the answers to the questions you've left blank

-----------------------------------
TheBboy
Mon Oct 08, 2012 10:47 am

RE:cannot find the solution
-----------------------------------
btw what do u mean by it

-----------------------------------
QuantumPhysics
Mon Oct 08, 2012 11:14 am

RE:cannot find the solution
-----------------------------------
He means - What are you looking for us to help you with in your program, What do you need? Please be more elaborate.
