PDA

View Full Version : help me stop it pls ;)



SGWGCorle
July 10th, 2006, 06:30 AM
Hi I want stop my ship when the range = 100 and stop the range increasig when the ship is not moving:crazy:.. please help me

SGWGCorle
July 10th, 2006, 06:34 AM
and I forgot upload *.fla - there is ->:beer:

SGWGCorle
July 11th, 2006, 07:34 AM
I was think about it aaaaaaand IT WORKS PERFECTLY ...thank you ME:cool:

onClipEvent (load) {
opotrebeni = 0;
}
onClipEvent (enterFrame) {
xpozice = 0;
ypozice = 0;
if (this._parent.okraj.hitTest(this._x+xpozice, this._y+ypozice, true)) {
opotrebeni += 1;
}
if (opotrebeni<101) {
this._parent.opotrebeni.opotrebenimaska._xscale = opotrebeni;
this._x = this;
this._y = this;
} else {
_root.movement = false;
this._parent.inf.text = "Auto je nepojízdné!";
delete _root.total_distance;
}
}