const _Create_Background = Scene_Title.prototype.createBackground; Scene_Title.prototype.createBackground = function() { _Create_Background.apply(this, arguments); const titleCommandButtonCursorSpriteTextureArray = []; for (const image of titleCommandButtonCursorSpriteJsonObject) { console.log("image: ", "img/" + image + ".png") let texture = PIXI.Texture.from("img/" + image + ".png"); titleCommandButtonCursorSpriteTextureArray.push(texture); } // let animatedSprite = new PIXI.AnimatedSprite(titleCommandButtonCursorSpriteTextureArray, true); let animatedSprite = new PIXI.AnimatedSprite(titleCommandButtonCursorSpriteTextureArray); animatedSprite.animationSpeed = 1; animatedSprite.loop = true; animatedSprite.x = titleCommandButtonCursorSpriteRect.x; animatedSprite.y = titleCommandButtonCursorSpriteRect.y; animatedSprite.width = titleCommandButtonCursorSpriteRect.width; animatedSprite.height = titleCommandButtonCursorSpriteRect.height; animatedSprite.onComplete = () => { }; animatedSprite.gotoAndPlay(0); console.log("animatedSprite: ", animatedSprite) this.addChild(animatedSprite); };
SharedScreenshot.jpg (160.26 KB, 下载次数: 63)
SharedScreenshot2.jpg (86.25 KB, 下载次数: 40)
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |