
-----------------------------------
Gaddy
Sat Jan 12, 2013 1:06 pm

Create multiple buttons to click in one procedure
-----------------------------------
I am creating a game where i have to build a face. I have all the facial features in one procedure and i want to create buttons for each of them in one procedure. The problem is Turing only allows me to create one button and when i try to create another button the first one works but not the second.

-----------------------------------
DemonWasp
Sat Jan 12, 2013 1:39 pm

RE:Create multiple buttons to click in one procedure
-----------------------------------
It is definitely possible to create multiple buttons. You forgot to do the part where you tell us what you've tried and show us your code. We can't really help you without more details.

-----------------------------------
Gaddy
Sat Jan 12, 2013 1:52 pm

Re: Create multiple buttons to click in one procedure
-----------------------------------
%Display
procedure display
    %Face
    drawoval (150, 200, 140, 200, black)


    %Eyes1
    drawoval (340, 340, 30, 15, black)
    drawoval (430, 340, 30, 15, black)
    drawfilloval (340, 340, 13, 15, blue)
    drawfilloval (430, 340, 13, 15, blue)


    %Eyes2
    drawoval (340, 380, 30, 15, black)
    drawoval (430, 380, 30, 15, black)
    drawfilloval (340, 380, 13, 15, brown)
    drawfilloval (430, 380, 13, 15, brown)


    %Eyes3
    drawoval (340, 300, 30, 15, black)
    drawoval (430, 300, 30, 15, black)
    drawfilloval (430, 300, 13, 15, 84)
    drawfilloval (340, 300, 13, 15, 84)


    %Nose1
    drawfilloval (550, 360, 30, 30, 40)


    %Nose2
    drawfillbox (520, 260, 580, 320, black)


    %Mouth1
    drawarc (390, 240, 85, 30, 180, 0, 1)


    %Mouth2
    drawbox (310, 150, 480, 180, green)
    loop
        mousewhere (x, y, button)
        if button = 1 then
            %FOR Mouth 2
            if (x >= 310 and x = 150 and y = 520 and x = 260 and y 