I’ve got a bubble, and I want this bubble to wobble to a random spot, sit there for a couple seconds, then wobble to another spot. By wobble I mean get to that spot with elasticity.
Below is the code I’m using, and the bubble keeps spazzing out. I want him to pause, but the setInterval doesn’t seem to be doing anything…
onClipEvent(enterFrame) {
 	 jump = function() {
 		var newX = random(100)*5;
 		var newY = random(100)*5;
 		
 		this._x = (newX - this._x)/2;
 		this._y = (newY - this._y)/2;
 		
 		clearInterval(sit);
 	}
 
 	sit = setInterval(jump, 1000);
 }