ok, i got just simple text to work
but still, how would i make this display a variable?
Type: Posts; User: mr_raging_money
ok, i got just simple text to work
but still, how would i make this display a variable?
I am using outtextxy(), and am getting errors that I am not writing things the write way in the function.
outtextxy(30,30,"test"); doesn't seem to work, even thought that is the only thing I have...
Ok, now it works. The thing making it now work seems to be I had
while(ch!='q'), to keep my main loop going. In that loop I had and
if(ch=='q'){
return 0;
} I changes the while loop to...
Yes, oogabooga's first example does work. I am not using MSVS, but I don't think that matters since his codes work.
this is what i have now
int main(void){
while(ch!='q'){ //thanks for this quit program idea
if(_kbhit()){
ch=_getch(); //does this get the value for _kbhit() ?
printf("DEBUG");
I am still trying out non-blocking keyboard input, and it kind of works. What ends up happening is none of the input I give through the keyboard is picked up.
while(1==1){
if(!_kbhit())
goto...
1. Is there a function that does non-blocking keyboard input in Dev C++ on Windows 7?
I have searched this dozens of times and have either found options that do not work, or don't have anything to...
I found one, kbhit(), but my keyboard input doesn't work now. I was using int ch=getch(); before, and I replaced getch() with kbhit(), and now it doesn't work.
Is there another function, the only...
I am looking for a function like getch(), where you don't have to press enter after entering a character, but will continure even if there is no input given.
Or, is there a way to make my program...
I'm using Windows 7 for programing right now. I'm not looking to have the "boxes" move at the same time, that is what I have right now, but have the AI move separately from the player, and not...
I am writing a simple program using shapes and keyboard control, and I started doing simple AI today for the enemies. I have my program now so that every time I press a key to move the box or shoot,...
*throws arms up*
thanks, rookie mistake
I have been working with simple graphics programs using graphics.h, and I noticed a problem while using it. When I run the program, it opens the graphics window and the text input and output window....
thanks a ton, it does make sense that you have to make the variable equal to getch() each time you want to change it
sorry, I didn't see your other post until after
I am writing a program that moves a simple rectangle around a graphics window, and I want to use a WASD style control scheme to do this. I was wondering how I would get the box to move according to...
Can I have some help with this?
I am starting to use the basic graphics in C, and I am trying to get keyboard input to work right. I want something like getch() to recognize what key I pressed and save it in a variable so I can...