function runFunc( func ){
	return func.apply( _this, arguments.slice() );
}// runFunc()


onMove_obj = runFunc(function(){
	var xLast = -999;
	var tLast = -999;
	
	function loop(){
		var xx = Math.floor(_x);
		var yy = Math.floor(_y);
		if( xx !== xLast  ||  yy !== yLast){
			xLast = _x;
			yLast = _y;
			sendEvent("onMove", {x:_x, y:_y, newPos:{x: xx, y:yy}, oldPos:{x:xLast, y:yLast}, sprite:_this});
		}// if:  player has moved
	}// onMove()
	
	react.to("spriteLoop").then = loop;
	react.to("init").then = loop;
});// onMove_obj