draw.text trouble
Author |
Message |
Jimbo1991
|
Posted: Fri May 23, 2008 12:05 pm Post subject: draw.text trouble |
|
|
im making a game in the same style as the t.v. show 'who wants to be a millionare' but i cant get the delay for the title to work, also, i cant get it to clear away to be able to start the game: var name : string
var font := Font.New ("TimesNewRoman:20")
var text := "Welcome To Who Wants To Be A Millionare!!"
var width := Font.Width (text, font)
var font1 : int
var boarder1 : int
var answer : int
%this will draw the first font
Font.Draw (text, 0, maxy div 2, font, blue)
%this will draw the second font
cls
Font.Draw (text, round (maxx / 2 - width / 2), maxy div 2, font, blue)
cls
font1 := Font.New ("timesnewroman:12:bold")
(delay: 100)
%Font.Draw ("So Are You Ready To Get Rich?", 99, 150, font1, green)
put "are you ready to play who wants to be a millionare?"
get answer
if answer = 1 then
put "good luck and let the games begin"
elsif answer = 2 then
put "well why arnt you ready?"
end if
here is my code, can anybody help me with it? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Sean
![](http://compsci.ca/v3/uploads/user_avatars/47413941748406f441f83e.png)
|
Posted: Fri May 23, 2008 1:21 pm Post subject: Re: draw.text trouble |
|
|
Delays work like this:
And if you want it to clear then put a cls before it:
|
|
|
|
|
![](images/spacer.gif) |
|
|