Computer Science Canada

Cheap loading screen help

Author:  HaVoC [ Thu Nov 20, 2003 12:27 pm ]
Post subject:  Cheap loading screen help

code:

loop
locatexy (200,240)
put " Please wait . "
for i: 1 .. 10
    put i: ,.
end for
exit when i:= 10
end loop
delay (2000)
cls


You see what i'm trying to do.
Please Wait..........
Where each second a dot is added and when 10 dots have appeared it 'loads'.
What needs to be changed. I know that "put i: ,. is wrong, but I just don't know what has to be changed.

Author:  Blade [ Thu Nov 20, 2003 1:20 pm ]
Post subject:  Re: Cheap loading screen help

code:

loop
locatexy (200,240)
put " Please wait . "
for i: 1 .. 10
    put i: ,.
end for
exit when i:= 10
end loop
delay (2000)
cls

there's a few things wrong. in your put statement you are using a comma without quotes, if you are adding things it has to be used like
code:
put "word1", " word2", " . "

and your exit when is out of the for loop, so i does not exist when its done
you're checking to see if i = 10 is also wrong because you are trying to assign the value with a := .. when you are using boolean you use a = not :=

Author:  HaVoC [ Thu Nov 20, 2003 1:39 pm ]
Post subject: 

Ok I used your code but it said i hadn't been declared and that there was a syntax error with the put i: ,.

-.-

Author:  aesthetics [ Thu Nov 20, 2003 1:41 pm ]
Post subject: 

You can use this code i just modified:

code:
locatexy (200, 240)
put "Please wait "..
for i : 1 .. 10
    put "."..
    delay (300)
end for
cls

Author:  Blade [ Thu Nov 20, 2003 1:55 pm ]
Post subject: 

HaVoC wrote:
Ok I used your code but it said i hadn't been declared and that there was a syntax error with the put i: ,.

-.-



i quoted your code Rolling Eyes

all i did was explain to you what you were doing wrong... you have to figure it out for yourself, i'm not gonna do your work for you

Author:  HaVoC [ Thu Nov 20, 2003 2:29 pm ]
Post subject: 

Blade wrote:
HaVoC wrote:
Ok I used your code but it said i hadn't been declared and that there was a syntax error with the put i: ,.

-.-



i quoted your code Rolling Eyes

all i did was explain to you what you were doing wrong... you have to figure it out for yourself, i'm not gonna do your work for you


Stupid me Laughing


: