Allegro

Pages: 1234
i tryed it, doesnt work.
I was thinking. Althoug this creates a lot of new lines. But it might work. Maybe it needed to make a new function that takes care of the movement, and then returns back to main when the mvement is done.
You could, but how will that work if you want several objects moving at the same time? It would be hard to do.
1
2
3
4
5
6
7
8
9
10
11
12
13
 while( !key[KEY_ESC])
 {
  int switcher=1;
  if(mouse_b & 1 || mouse_b & 2){ 
  while(getMouseInfo()) 
  { 
   updateScreen();
   if(getMouseInfo()==0) switcher=0;
  }
  if(switcher==0) show_mouse(screen);
      }
  else {updateScreen();}
    }

Been a few days since i last had tme to do this. So basicly i made it so that if a mouse button is cliced it does the thing it usually does, but i added that if mouse isnt cliced then it just updates screen. But this created a problem: i cannot see the mouse and it draws circle only in one corner nowhere else. So probably i made somekind of repetiton loop thet is causing this.
Topic archived. No new replies allowed.
Pages: 1234