I'm programming a RPG game in borland C++ 3.0
this is just for fun later i will change the graphic mode to opengl or directx but for now is with BGI
my question is how do i know when a key is pressed and when is a key is normal... that's for this reason:
i can capture the key with getch(), i'm capturing the up,down,left,right keys this is for the moving the character on the screen, but it moves slow cuz the D.O.S. key respond, i think that is the problem, is like then you press a key and you keep pressed you see the letter then it begins to repeat on the screen but slowly...
my procedure es something like this:
plz help... i just need help with this...Code:while (tecla!='0') do //with 0 it exit, this is just an example { tecla=getch(); //here i evaluate the key }