
-----------------------------------
bboy_ayz
Wed Dec 14, 2005 7:44 pm

Problem with picture while delsplaying words
-----------------------------------
Hey, i have a problem. I made a game who wants to be a millionare, and I want to make the following:

While the words are gettin typed, i mean the question, i was a face to desplay, i made the face, i made the face talk as well, i mean it moves the mouth. The problem is when i put the script of the talking face, in the questions. 1) first the face displayes 2) then the qusetion deisplays 3) the face blocks the questions (but i knwo how to fix it, with locating)

Thank you alot  :roll:

-----------------------------------
Paul
Wed Dec 14, 2005 7:47 pm


-----------------------------------
Would you please be more specific? Maybe some code would help.
You may also want to look up Draw.Text.

-----------------------------------
DIIST
Wed Dec 14, 2005 10:01 pm


-----------------------------------
You can also try Font.Draw(). You can choose you own custom fonts and sizes.

-----------------------------------
Paul
Wed Dec 14, 2005 10:02 pm


-----------------------------------
:shock:  Is there actually a difference between Draw.Text and Font.Draw? I've used them interchangeably.

-----------------------------------
bboy_ayz
Wed Dec 14, 2005 10:22 pm


-----------------------------------
Alright, this is my script lets say

%%%%%%%%%%%%%%%%%%This is the question%%%%%%%%%
   put "The 100 dollar question is easy" 
   put "1. What is the capital city of Israel" 
   put "" 
   delay (200) 
   put "a)Toronto" 
   delay (200) 
   put "b)London" 
   delay (200) 
   put "c)Jerusalem" 
   delay (200) 
   put "d)Russia" 
%%%%%%%%%%%%%%%%%%This is the face%%%%%%%%%%%
var eyemove : int := 5
var mouth, mouth2 : int := 0


for i : 1..35

    View.Update 
    
    Draw.FillOval (250, 370, 95, 100, 91)
    Draw.Oval (250, 370, 95, 100, black)

    %draw the hair
    drawline (200,480,200,455,black)
    drawline (190,480,190,448,black)
    drawline (180,480,180,439,black)
    drawline (210,480,210,460,black)
    drawline (220,480,220,465,black)
    drawline (230,480,230,470,black)
    drawline (240,480,240,470,black)
    drawline (250,480,250,470,black)
    drawline (260,480,260,470,black)
    drawline (270,480,270,469,black)
    drawline (280,480,280,465,black)
    drawline (290,480,290,460,black)
    drawline (300,480,300,455,black)
    drawline (310,480,310,448,black)
    
    
    %draws the eyes

    drawfilloval (210, 390, 15, 15, white)
    drawfilloval (290, 390, 15, 15, white) 

    drawoval (210, 390, 15, 15, black)
    drawoval (290, 390, 15, 15, black)

    drawfilloval (210, 390, 5, 12, green)
    drawfilloval (290, 390, 5, 12, green)

    %draws the mouth
    %randomize
    randint (mouth, 1, 20)
    randint (mouth2, 1, 15)

    delay (100)

    mouth := mouth + mouth2

    drawfilloval (240, 310, mouth, mouth2, black)


    if mouth > 50 then
        mouth := mouth - 5


end if  
    end for
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


I want to make the face talk, WHILE the words are gettin showen, what i tried is fitst put face and under it the question, but it shows 1st the face then the qustion, i want then togther

 :lol:

-----------------------------------
Mr. T
Wed Dec 14, 2005 10:30 pm

Alex's Opinion
-----------------------------------
Processes.  :twisted:  :guns:  :snipe:   :bat:

-----------------------------------
codemage
Thu Dec 15, 2005 2:29 pm


-----------------------------------
Avoid processes like the plague.
Procedures would make things easier, though.

If you throw the next string to be said at a procedure, you can go through the sentence one letter at a time - like so:

(This is without procedures - so only the first string is done as an example).


View.Set("offscreenonly")
%%%%%%%%%%%%%%%%%%This is the face%%%%%%%%%%%
var eyemove : int := 5
var mouth, mouth2 : int := 0

var tempstring : string


%this takes the next string to be spoken.
tempstring := "The 100 dollar question is easy"
for i : 1 .. length(tempstring)

    View.Update

    put tempstring(i)..
    Draw.FillOval (250, 370, 95, 100, 91)
    Draw.Oval (250, 370, 95, 100, black)

    %draw the hair
    drawline (200, 480, 200, 455, black)
    drawline (190, 480, 190, 448, black)
    drawline (180, 480, 180, 439, black)
    drawline (210, 480, 210, 460, black)
    drawline (220, 480, 220, 465, black)
    drawline (230, 480, 230, 470, black)
    drawline (240, 480, 240, 470, black)
    drawline (250, 480, 250, 470, black)
    drawline (260, 480, 260, 470, black)
    drawline (270, 480, 270, 469, black)
    drawline (280, 480, 280, 465, black)
    drawline (290, 480, 290, 460, black)
    drawline (300, 480, 300, 455, black)
    drawline (310, 480, 310, 448, black)


    %draws the eyes

    drawfilloval (210, 390, 15, 15, white)
    drawfilloval (290, 390, 15, 15, white)

    drawoval (210, 390, 15, 15, black)
    drawoval (290, 390, 15, 15, black)

    drawfilloval (210, 390, 5, 12, green)
    drawfilloval (290, 390, 5, 12, green)

    %draws the mouth
    %randomize
    randint (mouth, 1, 20)
    randint (mouth2, 1, 15)

    delay (100)

    mouth := mouth + mouth2

    drawfilloval (240, 310, mouth, mouth2, black)


    if mouth > 50 then
        mouth := mouth - 5


    end if
end for

