Nope dosent solve my problem. When I set the variabel_1 to the changes where you suggested. The same problems occure....(I can change them as yu did and then it starts to move by it self, and then stops and never moves again)
And when I change this part :
if(variabel_1 ==0)//deff 0
{
if(vec_dist(my.x,temp)<=0.5)
{
variabel_1 = 1;//def 1
}
c_move(me,vector(10*time_step,0,0),nullvector,IGNORE_ME|IGNORE_PASSABLE|GLIDE);
}
Setting Variabel_1 = 0 ;
The player never stops, just "running" around until you click somewhere else...then it goes to that part and keeps "running" never stops. So I must have some kind of "stopping" part.....
And I think I must have it in a else part or something like that..... But my brain cant see straight.....smile