Code:

var highscore = 0;

function book_event()
{
if(event_type == event_click)
{
you.flag1 = on;
highscore = highscore + 25;
}
}

action book_fly
{
my.enable_click = on;
my.event = book_event;

while(my.flag1 == off)
{
my.x -= time * 5;
wait(1);
}
ent_remove(me);
}