RPGツクールMV総合 20作目 [無断転載禁止]©5ch.net
■ このスレッドは過去ログ倉庫に格納されています
0793名前は開発中のものです。
2016/09/28(水) 02:54:30.79ID:JNZUH62T座標その他全部一緒で「ピクチャを表示」した時トリアコンタンさん方式でチラつき無しで読み込むようになってる…はず
スクリプト素人だけど一応軽くテストして動いてる
Game_Screen.prototype.showPicture = function(pictureId, name, origin, x, y,
scaleX, scaleY, opacity, blendMode) {
var realPictureId = this.realPictureId(pictureId);
var p = this._pictures[realPictureId];
if (p && p._x == x && p._y == y && p._scaleX == scaleX && p._scaleY == scaleY && p._opacity == opacity && p._blendMode == blendMode) {
var bitmap = ImageManager.loadPicture(name);
bitmap.addLoadListener(function() {
$gameScreen.picture(pictureId)._name = name;
});
} else {
var picture = new Game_Picture();
picture.show(name, origin, x, y, scaleX, scaleY, opacity, blendMode);
this._pictures[realPictureId] = picture;
}
};
_x == x && _y == y &&...って何個も続いてるの我ながらアホっぽいから誰かもっとスマートな書き方知ってたら教えて…
■ このスレッドは過去ログ倉庫に格納されています