pavel329 wrote:the script is better,but why is there not a keydown function?
char*key=GetKeyState();
if(key[KEY_LEFT]==1)
{
//action to be repeated every frame
}
char*key=GetKeyState();
int No_Repeat;
if(key[KEY_LEFT]==1 && No_Repeat==0)
{
//action not to be repeated
No_Repeat=1;
}
else
{
No_Repeat=0;
}
arcreamer wrote:i dont understand that script u just posted game a go, can i describe it for me a little please? im still learning
Users browsing this forum: No registered users and 1 guest