
-----------------------------------
mapleleaf31
Tue Jan 13, 2004 6:09 pm

3 Questions about a game I'm making, Please Help
-----------------------------------
Ok I'm quite new to Turing, I'm making a Who Wants To Be a Millionaire game. I was wondering if anyone could answer these 3 questions

1. Are all files made on the new Turing still available on the old Turing?
2. Can you insert .jpg or .gif into a program, if so how?
3. How could I end the file. I.E. If a person gets a question wrong I want the game to end so they can't go on, like the real Who Wants to be a Millionaire?

-----------------------------------
McKenzie
Tue Jan 13, 2004 6:10 pm


-----------------------------------
which exact version of the old Turing?

-----------------------------------
mapleleaf31
Tue Jan 13, 2004 6:11 pm


-----------------------------------
which exact version of the old Turing?

Not the Dos version, I think it's 4.0.1

Edit ok I found the pictures tutorial but I still need an answer for the other two

-----------------------------------
14fenix
Tue Jan 13, 2004 6:33 pm


-----------------------------------
Im not sure about 1.. 

But about getting a question wrong and losing... Using procedures would be the best solution.. Check out the Help file under procedure. They are pretty easy to use and with that you should be able to do what you want

-----------------------------------
Cervantes
Tue Jan 13, 2004 6:34 pm


-----------------------------------
i think so.

to get a picture you need to create a variable for that picture and then declare the picture using Pic.New

so it would look like this:

var pic : int := Pic.New ("balloon.jpg")

-----------------------------------
14fenix
Tue Jan 13, 2004 6:44 pm


-----------------------------------
Pic.ScreenLoad ("C:\\My Documents\\picture.bmp", 10, 650, picCopy)

Basically use the Pic.ScreenLoad.. Make sure you use the double slashes "\\" between levels... Bmp and jpg both work

-----------------------------------
Cervantes
Tue Jan 13, 2004 6:48 pm


-----------------------------------
oops its not Pic.New its Pic.FileNew        

Pic.FileNew > Pic.ScreenLoad      (no writing the path)

muahaha

-----------------------------------
shorthair
Tue Jan 13, 2004 6:54 pm


-----------------------------------
give dome background on the questions AND DONT LABEL TOPICS HELP ME, why do you want to stop reading the file if they get a question wrong?

-----------------------------------
Cervantes
Tue Jan 13, 2004 6:57 pm


-----------------------------------
cuz that makes things interesting...
you can risk it or stay safe......

-----------------------------------
mapleleaf31
Tue Jan 13, 2004 9:22 pm

Another Problem
-----------------------------------
Ok My text goes over the picture, how can I stop that?

Edit heres the first bit of my code:

var picture :int := Pic.FileNew ("million.jpg")
var picture2 :int := Pic.FileNew ("regis.jpg")
var answer1, answer2, answer3, answer4, answer5, answer6, answer7, answer8, answer9, answer10, answer11, answer12, answer13, answer14, answer15:string
var name:string

Pic.Draw (picture, 450, 0, picCopy)
Pic.Draw (picture2,450,170, picCopy)

put "Welcome to Who Wants To Be a Millionaire"
put "Please Enter Your Name:"
get name
put "Hello ", name,","
put "Enter In all the answers to the questions"
put ""
put "For $100 Dollars"
put "What is the highest grossing movie ever made"
put "a. Titanic"
put "b. Gone With The Wind"
put "c. Lord Of the Rings: Return of the King"
put "d. Gigli"
get answer1
put ""
if answer1="a" or answer1="A" then 
put "Correct for $100"
else
put "You leave with nothing. Thanks for Playing"
end if
put ""

-----------------------------------
AsianSensation
Tue Jan 13, 2004 10:02 pm


-----------------------------------
to end your program at anytime, use return

-----------------------------------
mapleleaf31
Tue Jan 13, 2004 10:07 pm


-----------------------------------
to end your program at anytime, use return

HOLY CRAP, I don't know how many times I can say thanks! Can you answer the question I asked in the post before yours?

-----------------------------------
AsianSensation
Tue Jan 13, 2004 10:09 pm


-----------------------------------
instead of using put and get, use the Font module. like Font.Draw and etc, it's basicly like drawing a picture, except now you are drawing fonts.

-----------------------------------
mapleleaf31
Tue Jan 13, 2004 10:12 pm


-----------------------------------
[quote="AsianSensation"]instead of using put and get, use the Font module. like Font.Draw and etc, it's basicly like drawing a picture, except now you are drawing fonts.[/quote]

Thanks, is there anyway to get it to work with keeping the puts & gets?

-----------------------------------
AsianSensation
Tue Jan 13, 2004 10:18 pm


-----------------------------------
I believe when you do this

put word .. 

it doesn't go to the next line, so you can string all the stuff together, and use a couple of locate here and there to keep these in position. But the manipulation is too much work compares to Font.Draw. So I would prefer using the Font module, unless your teacher doesn't let you use stuff that he hasn't taught before, there is no point of doing all those extra work.
