Computer Science Canada SLOTS error |
| Author: | bc123 [ Tue Dec 01, 2009 3:33 pm ] | ||
| Post subject: | SLOTS error | ||
What is it you are trying to achieve? Im trying to make a fully working slots game (simple way with 3 in row not 9 images) What is the problem you are having? where im inputing images [eg. cherry] i dont have images in yet but i made a slot machise design and it takes away the rest of the line when i use locate Describe what you have tried to solve this problem using a text file but i dont kno how to fix the thing where you cant put spaces in txt file cuz it skips to next line instead of reading whole line Post any relevant code
[size=14][b]Please specify what version of Turing you are using im using 4.1.1 |
|||
| Author: | DemonWasp [ Tue Dec 01, 2009 3:53 pm ] | ||
| Post subject: | RE:SLOTS error | ||
To read a whole line, including spaces, use :* at the end of your get line, as follows:
Each time you use put, it replaces the entire line of text it outputs to. There is, to my knowledge, no way to change that behaviour. In general, one would try to use only images (Pic, Draw and Font modules) or only text (locate, put, Text module) at any given time. |
|||
| Author: | Zren [ Tue Dec 01, 2009 3:55 pm ] |
| Post subject: | RE:SLOTS error |
get thingy :* The :* will include the whitespace. |
|