#include mousedef.txt
if (isset(f5)) {
  v99 = 0;
  load.pic(v0);
  draw.pic(v0);
  discard.pic(v0);
  set.horizon(0);
  show.pic();

  animate.obj(o1);
  load.view(0);
  set.view(o1,0);
  position(o1,130,30);

  animate.obj(o2);
  load.view(4);
  load.view(5);

  animate.obj(o3);
  load.view(1);
  set.view(o3,1);
  position(o3,130,50);
  }

  if(mouse_y > 30 && mouse_y < 48 && mouse_x > 130 && mouse_x < 166) {
  // Is the mouse button pressed
  if(mouse_button == Mb_left) {
    // If it is, draw the mouse button down, then jump to room 3
    set.loop(o1,2);
    v99 = 0;
  } else {
    // Otherwise, draw the button as a mouse over graphic
    set.loop(o1,1);
  }
} else {
  // Draw the mouse button in normal state
  set.loop(o1,0);
}
draw(o1);

  if(mouse_y > 50 && mouse_y < 67 && mouse_x > 130 && mouse_x < 166) {
  // Is the mouse button pressed
  if(mouse_button == Mb_left) {
    // If it is, draw the mouse button down, then jump to room 3
    set.loop(o3,2);
    v99 = 1;
  } else {
    // Otherwise, draw the button as a mouse over graphic
    set.loop(o3,1);
  }
} else {
  // Draw the mouse button in normal state
  set.loop(o3,0);
}
draw(o3);

// setting the object
  if(v99 == 0){
  set.view(o2,4);
  }
  if(v99 == 1){
  set.view(o2,5);
  }

// draws the object
if (v27 == 1) {
      if (v29 > 30 &&
          v29 < 176 &&
          v28 > 2 &&
          v28 < 158) {
        v28 -= 4;
        if (!isset(f250)) {
          position.v(o2,v28,v29);
          end.of.loop(o2,f255);
        }
        else {
          set.cel(o2,2);
        }
        draw(o2);
      }
    }

if (isset(f255)) {
  stop.update(o2);
  set.cel(o2,0);
  reset(f255);
}
return();

// Messages