so gehts aber ich finde es nicht schön geschrieben

Code:
///////////////////////////////
#include <acknex.h>
#include <default.c>



function healthbar();

PANEL* health_pan = 
{
  bmap = "health.bmp";
  pos_x = 100;
  pos_y = 2;
  layer = 100;
  flags = VISIBLE;
}

function main()
{
 level_load(NULL);
 healthbar(); 
}

action healthbar()
{	
 while(1)
 {	
  if(key_a)
  {
  health_pan.scale_x -= 1*time_step;
  }
  wait(1);
 } 
}



Last edited by ratz; 01/24/12 19:39.