//First
var virziens;//left and right
//ad if you want more vars then need
var smtg_else;

function kustiba//movement
{
while(1)//this is for example
{
//this code below you place in your code
if(joy_force.y>0){virziens=6*time_step}
if(joy_force.y<0){virziens=-6*time_step}
//here you move in that direction now to which you press
c_move(my,vector(virziens,0,0),nullvector,GLIDE);
wait(1);
}
}


Arrovs once will publish game