[size=2]How do I reset a getTimer();? My script for my “game” doesn’t work, here’s the code:
on(press){
poang += 1;
_root.minpoang=poang;
this.gotoAndPlay(2);
}
onClipEvent(load){
poang = 0;
this._visible = true;
}
onClipEvent(enterFrame){
_root.time = getTimer()/500;
_x -= 25;
_y += _root.time * 9.82;
if(_y>1200){
_root.time = 0;
setProperty(_root.pepsi, _x, random(1200));
setProperty(_root.pepsi, _y, -20);
varde = random(70)+50;
setProperty(_root.pepsi, _xscale, varde);
setProperty(_root.pepsi, _yscale, varde);
this.gotoAndStop(1);
}
}
As you can see, I have tried to reset time to 0 again, but that doesn’t work… here is the fla: http://erikhk.mine.nu/dump/files/colaspel.fla
[/size]