
-----------------------------------
mains50
Mon May 03, 2010 10:39 pm

Hangman game problem
-----------------------------------
What is the problem you are having?
illegal picture ID error and displaying dashes in the screen


Describe what you have tried to solve this problem
i have looked over various kind of threads and post.









Please specify what version of Turing you are using
4.1

if you find problems within my code can you fix it or tell me and help me fix it.
Thank you for helping me.

p.s please download the second file

-----------------------------------
Turing_Gamer
Tue May 04, 2010 11:44 am

RE:Hangman game problem
-----------------------------------
Flashes mean either you didnt do { View.Set ("offscreenonly"), cls, and View.Update } or { You have more than 1 View.Update in your loop }. Picture error means that the pic wasn't set up properly whether it was the code or the picture itself. Mind you I cant open the file since it is rar

-----------------------------------
hamid14
Tue May 04, 2010 6:37 pm

Re: Hangman game problem
-----------------------------------
In your code, when you set the value for your array of imageList variable, you did NOT put the correct spaces between the names in quotes and you put ".bmp" instead of ."jpg", which is actually the real format of the pics themselves in the folder of the program. I hope this fixed your errors. 

This is the incorrect version

imageList (0) := Pic.FileNew ("image0.bmp")
imageList (1) := Pic.FileNew ("image1.bmp")
imageList (2) := Pic.FileNew ("image2.bmp")
imageList (3) := Pic.FileNew ("image3.bmp")
imageList (4) := Pic.FileNew ("image4.bmp")
imageList (5) := Pic.FileNew ("image5.bmp")
imageList (6) := Pic.FileNew ("image6.bmp")


This is the corrected version

imageList (0) := Pic.FileNew ("image 0.jpg")
imageList (1) := Pic.FileNew ("image 1.jpg")
imageList (2) := Pic.FileNew ("image 2.jpg")
imageList (3) := Pic.FileNew ("image 3.jpg")
imageList (4) := Pic.FileNew ("image 4.jpg")
imageList (5) := Pic.FileNew ("image 5.jpg")
imageList (6) := Pic.FileNew ("image 6.jpg")


-----------------------------------
mains50
Tue May 04, 2010 7:25 pm

Re: Hangman game problem
-----------------------------------
In your code, when you set the value for your array of imageList variable, you did NOT put the correct spaces between the names in quotes and you put ".bmp" instead of ."jpg", which is actually the real format of the pics themselves in the folder of the program. I hope this fixed your errors. 

This is the incorrect version

imageList (0) := Pic.FileNew ("image0.bmp")
imageList (1) := Pic.FileNew ("image1.bmp")
imageList (2) := Pic.FileNew ("image2.bmp")
imageList (3) := Pic.FileNew ("image3.bmp")
imageList (4) := Pic.FileNew ("image4.bmp")
imageList (5) := Pic.FileNew ("image5.bmp")
imageList (6) := Pic.FileNew ("image6.bmp")


thank you very much!

btw i have problem displaying the dashes in the screen and the code for getting the original phrase, if you or anybody could help me with that please 

This is the corrected version

imageList (0) := Pic.FileNew ("image 0.jpg")
imageList (1) := Pic.FileNew ("image 1.jpg")
imageList (2) := Pic.FileNew ("image 2.jpg")
imageList (3) := Pic.FileNew ("image 3.jpg")
imageList (4) := Pic.FileNew ("image 4.jpg")
imageList (5) := Pic.FileNew ("image 5.jpg")
imageList (6) := Pic.FileNew ("image 6.jpg")

