Try something like this: (not tested) while(1) { vec_set(temp,monster.pos); vec_to_screen(temp,camera); panel.pos_x = temp.x - (panel.size_x /2); //to be at center panel.pos_y = temp.y - 50; //play with this value to place panel above entity wait(1); }