I think having to submit your game to the DB before it can be up for nomination is a good idea. It's nice and neat, not difficult at all and most people do it anyway so it wouldn't be out of the norm.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: MrColossal on Mon 14/03/2005 03:12:20
Is 12 dollars ok?
function TypeLineSay (string say, int xpos, int vpos, int width, int delay, int wait) {
StrCopy (line, say);
SetTextWindowGUI(1);
//declare local vars
textid = 0;
//initialise vars , overdoing it a bit ;-)
length = 0;
i=0;
StrCopy(displayedline,"");
textid = CreateTextOverlay(xpos, 100, 400, 1, 1, displayedline);
//get string length, to know how long the loop must run
length=StrLen(line); //set string length
//start loop
while((i<length) && (1||(WaitKey(delay)==0))) {
// pick character at position "i"and stick it at the end of string "displayed line"
StrFormat(displayedline, "%s%c", displayedline, StrGetCharAt(line,i));
//set textoverlay as displayedline
SetTextOverlay(textid,xpos,vpos,width,1,1,displayedline);
// if a space is added to the string do not play a sound, else play a 'tick'
if (StrGetCharAt(line,i) == ' '){
}
else{
PlaySound(1);
}
//increase the loop counter
i++;
if (i==length) if (wait>0) WaitKey(wait);
else if (wait == -1) while (IsKeyPressed(keyx) == 0) Wait(1);
}
RemoveOverlay(textid);
Wait(5);
}
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.450 seconds with 15 queries.