Ciao a tutti, per un MC inserito in una bozza di sito:

http://spazioinwind.libero.it/webtes...index_123.html

ho inserito questo cosice:
codice:
function muovi() {
	if (((Math.round(_root.myMC._x-myNewX)<2) && (Math.round(_root.myMC._y-myNewY)<2)) || (isNaN(myNewX) || isNaN(myNewY))) {
		myNewX = Math.random()*300	
		myNewY = Math.random()*500
	} else {
		_root.myMC._x = ((_root.myMC._x*9)+myNewX)/10
		_root.myMC._y = ((_root.myMC._y*9)+myNewY)/10
	}
}
myInterval = setInterval(this, "muovi", 10)
(che ho trovato su questo forum)
, vorrei peò ottenere un movimento random ma costante, in modo di dare all'ape un movimento più realistico (per quello che puo essere...)

che cosa dovrei cambiare?
grazie ciao