Wouldn't it be nice if we could do something like
PHP Code:
player.onLevelSwitch = function (e) {
e.stop();
blackness.tween('opacity', 0.2, 0, 1);
schedule(0.2, function () {
player.level = e.link.newLevel;
player.x = e.link.newX;
player.y = e.link.newY;
blackness.tween('opacity', 0.2, 1, 0);
});
};
Yes, that
was a weird mesh of JavaScript and GS2.