scnMenu - Create Script
scnMenu - Create Script
this.titleGame.y -= 384;
this.tweens.add({
targets: diz.titleGame,
ease: 'Bounce.easeOut',
duration: 750,
delay: 250,
y: 200
});
this.titleGame.setScale(0);
this.tweens.add({
targets: diz.titleGame,
ease: 'Elastic',
duration: 750,
delay:1000,
scaleX:1,
scaleY:1
});
btnPlay.setScale(0);
this.tweens.add({
targets: btnPlay,
ease: 'Back',
duration: 500,
delay: 750,
scaleX : 1,
scaleY : 1
});
btnPlay.setInteractive();
if (!btnCliked) return;
if (gameObject == btnPlay) {
btnPlay.setTint(0x616161);
}
}, this);
if (!btnCliked) return;
if (gameoObject == btnPlay) {
btnPlay.setTint(0xffffff);
}
}, this);
if (gameObject == btnPlay) {
btnPlay.setTint(0x616161);
btnCliked = true;
}
}, this);
if (gameObject == btnPlay) {
btnPlay.setTint(0xffffff);
this.scene.start('scnPlay');
}
}, this);
btnCliked = false;
}, this);
}