Re: C++ : Functions.
Thanks for the reply phrostbyte. I'm using the kbhit() function which is defined in the conio.h (Borland's file) for grabbing keyboard events. I can use the if(kbhit()) , but thats not the problem , the thing is i can use infinite loops and key press events for making the snake's head and continuing it. I just cant figure out a proper way (without glitches) to erase it's tail.
Like if S is pressed , the snake starts going downwards , but how do i erase its tail which could be anywhere.
I've put around 15 hours into figuring out the erasing tail part and im just going nuts..but i just cant seem to figure it out ( , Please i need help .
Last edited by ashmew2; September 27th, 2009 at 08:31 PM.
Reason: Typo
The truth is always beautiful, no matter how ugly it might seem at first.
Bookmarks