Search:

Type: Posts; User: mr_raging_money

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,824

    ok, i got just simple text to work but still,...

    ok, i got just simple text to work

    but still, how would i make this display a variable?
  2. Replies
    3
    Views
    1,824

    outtextxy();

    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...
  3. Replies
    7
    Views
    1,436

    Ok, now it works. The thing making it now work...

    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...
  4. Replies
    7
    Views
    1,436

    Yes, oogabooga's first example does work. I am...

    Yes, oogabooga's first example does work. I am not using MSVS, but I don't think that matters since his codes work.
  5. Replies
    7
    Views
    1,436

    this is what i have now int main(void){...

    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");
  6. Replies
    7
    Views
    1,436

    !_kbhit ???

    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...
  7. Replies
    4
    Views
    1,410

    Couple of questions

    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...
  8. Replies
    3
    Views
    1,433

    I found one, kbhit(), but my keyboard input...

    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...
  9. Replies
    3
    Views
    1,433

    non-blocking keyboard input

    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...
  10. Replies
    6
    Views
    2,256

    I'm using Windows 7 for programing right now. ...

    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...
  11. Replies
    6
    Views
    2,256

    How do I have C Do 2 Things at Once?

    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,...
  12. Replies
    3
    Views
    3,895

    *throws arms up* thanks, rookie mistake

    *throws arms up*
    thanks, rookie mistake
  13. Replies
    3
    Views
    3,895

    scanf crashes graphics program

    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....
  14. Replies
    3
    Views
    3,686

    thanks a ton, it does make sense that you have to...

    thanks a ton, it does make sense that you have to make the variable equal to getch() each time you want to change it
  15. Replies
    3
    Views
    2,620

    sorry, I didn't see your other post until after

    sorry, I didn't see your other post until after
  16. Replies
    3
    Views
    2,620

    Using Keyboard to Control Variables

    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...
  17. Replies
    3
    Views
    3,686

    Can I have some help with this?

    Can I have some help with this?
  18. Replies
    3
    Views
    3,686

    Instant Keyboard Input Questions

    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...
Results 1 to 18 of 18