Hey

It should be something like this:
Code:
action hero(){
	
	var moving_distance = 0, moving_speed = 0, is_moving = 0;
	
	while(my){
		
		moving_distance = c_move(my, dist, absdist, FLAGS);
		
		if(moving_distance > 0){
			
			moving_speed = moving_distance / time_step;
			is_moving = 1;
			
		}
		else{
			
			moving_speed = 0;
			is_moving = 0;
			
		}
		
		wait(1);
		
	}
	
}

Greets!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung