Tralu
|
The HookRetrace definitely works, but not with the while statement looping around. And getting rid of UpdateControls() in thw while loop but not in the Hookretrace doesn't allow me to use the keyboard.
OK, as a certain precaution, I've added the simple code that I've added to my new game thus far.
//The HookRetrace Loop
void startgame()
{
log("begin!");
rectfill(0,0,640,480,RGB(1,1,1));
rectfill(0,0,640,480,RGB(255,255,255));
rectfill(2,2,638,478,RGB(200,200,200));
rectfill(3,3,637,477,RGB(0,0,50));
rect(50,36,591,444,RGB(200,200,200));
rect(51,37,590,443,RGB(0,0,0));
Tcopysprite(54,40,533,400,house);
/* if( random(100)=1 !blink)
{blink=1; timer=0;}
if(blink)
{
if(timer10 && timer14 && timer19 && timer27 && timer32 && timer36)
{blink=0;}
timer++;
}
*/
if(!blink)
{tcopysprite(30, 105, 200, 450, girl);}
Setlucent(2);
Calclucent(200);
rectfill(54,370,583, 480, RGB(0,25,100));
Setlucent(0);
rect(54,370,583, 480, RGB(255,255,255));
rect(55,372,582, 479, RGB(255,255,255));
rect(55,373,581, 478, RGB(200,200,200));
// statmenu();
GotoXy(59, 375);
printstring(font, strline[0]);
showpage();
updatecontrols();
if(b2)
{
exit("Goodbye...sucker.");
}
}
//The while loop...text not finished
void text(string one, string two, string three)
{
while(!b1)
{
strline[0]=one;
}
}
This is kind of a stripped down version of it, but it looks like it should work, right? Without the while statement, the Hookretrace works fine, but the HookRetrace won't even loop once during the while statement. Help, anyone?
It has always been the prerogative of children and half-wits to point out that the emperor has no clothes.
But the half-wit remains a half-wit, and the emperor remains and emperor.
-Dream
Posted on 2001-11-05 14:35:47
|