Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created June 12, 2016 03:06
Show Gist options
  • Save triacontane/01a60676345fe20f1a76e3d0e99c4daf to your computer and use it in GitHub Desktop.
Save triacontane/01a60676345fe20f1a76e3d0e99c4daf to your computer and use it in GitHub Desktop.
ピクチャのチラつきを防いで画像を差し替えるスクリプト
var pictName = 'ピクチャ名';
var bitmap = ImageManager.loadPicture(pictName);
bitmap.addLoadListener(function() {
$gameScreen.picture(ピクチャ番号)._name = pictName;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment