hi you can achieve this using a loop.
Code:
 
function move_me()
{
var current_pos=0;
while(current_pos<=30){mypanel.pos_y+=1; current_pos+=1; wait(1);}
current_pos=0;
}


current_pos<=30 > 30 is the amount you want to move it.
mypanel.pos_y+=1 > 1 is the speed you want to move it.
mypanel.pos_y+=1 will change the panel's y direction. Use pos_x instead for the other direction.

You can then attach this to something like on_d=move_me; in main() or another function.

Last edited by DJBMASTER; 07/04/08 19:14.