yes, I wanted something like that.docwild wrote:You uploaded a new version a few minutes after I d/led the other one.
If you want a delay before launching the player you can use the closures (like typecasting in C):
Which is just awful and ugly syntax, but it works.var trumbleLaunchTimer = new Timer(this, function(){
if(PlayerShip.docked) PlayerShip.launch();
}, delay, interval);
You also may have shown me there what the not-function error is about, if timers are indeed a variable.
And that earns you a place in the credits.
edit:ehrm neh, "this.timer = stuff" just makes it a script property as advised in the documentation, which also doesn't use parentheses for the triggered function...lets see if that's it.
Has anyone noticed any problems with using && in combo with the "else if" statement? Sometimes either works fine, but I had lots of syntaxerrors in lines combining the two.