What you want to move?
{boxie.pos_x -=24*time_step;}
You declare boxie at your code? Or you want to move the boxie_pan ?
Then use
{boxie_pan.pos_x -=24*time_step;}