// Panel "sidebar"
PANEL pam_sidebar {
flags=VISIBLE | OVERLAY;
}
// event
function event_mouseover{
pam_sidebar.bmap=bmap_for_entity(me,1);
wait(1);
}
// action von Bild (sprite-entity)
action react_on_mouseover{
my.event=event_mouseover;
my.ENABLE_TOUCH = on;
}
// main function
function main {
level_load(NULL);
ent_create("bild.bmp", vector(800,0,0), react_on_mouseover);
mouse_mode=1;
mouse_pointer=1;
mouse_range=5000;
while(1){
MOUSE_POS.X = POINTER.X;
MOUSE_POS.Y = POINTER.Y;
wait(1);
}
}