Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 3 Questions about a game I'm making, Please Help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
mapleleaf31




PostPosted: Tue Jan 13, 2004 6:09 pm   Post subject: 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?
Sponsor
Sponsor
Sponsor
sponsor
McKenzie




PostPosted: Tue Jan 13, 2004 6:10 pm   Post subject: (No subject)

which exact version of the old Turing?
mapleleaf31




PostPosted: Tue Jan 13, 2004 6:11 pm   Post subject: (No subject)

McKenzie wrote:
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




PostPosted: Tue Jan 13, 2004 6:33 pm   Post subject: (No subject)

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




PostPosted: Tue Jan 13, 2004 6:34 pm   Post subject: (No subject)

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




PostPosted: Tue Jan 13, 2004 6:44 pm   Post subject: (No subject)

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




PostPosted: Tue Jan 13, 2004 6:48 pm   Post subject: (No subject)

oops its not Pic.New its Pic.FileNew

Pic.FileNew > Pic.ScreenLoad (no writing the path)

muahaha
shorthair




PostPosted: Tue Jan 13, 2004 6:54 pm   Post subject: (No subject)

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?
Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Tue Jan 13, 2004 6:57 pm   Post subject: (No subject)

cuz that makes things interesting...
you can risk it or stay safe......
mapleleaf31




PostPosted: Tue Jan 13, 2004 9:22 pm   Post subject: Another Problem

Ok My text goes over the picture, how can I stop that?

Edit heres the first bit of my code:

Quote:
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




PostPosted: Tue Jan 13, 2004 10:02 pm   Post subject: (No subject)

to end your program at anytime, use return
mapleleaf31




PostPosted: Tue Jan 13, 2004 10:07 pm   Post subject: (No subject)

AsianSensation wrote:
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




PostPosted: Tue Jan 13, 2004 10:09 pm   Post subject: (No subject)

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




PostPosted: Tue Jan 13, 2004 10:12 pm   Post subject: (No subject)

[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




PostPosted: Tue Jan 13, 2004 10:18 pm   Post subject: (No subject)

I believe when you do this

code:
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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 15 Posts ]
Jump to:   


Style:  
Search: