javascript - Phaser (3.24.1) 如何补间 TileSprite?
问题描述
我想通过 tilePositionX 和 tilePositionY 对 TileSprite 进行补间。
scene.load.image('sky', 'assets/images/sky.png');
const sky = scene.add.tileSprite(0, 0, 1000, 600, 'sky');
scene.add.tween(sky); // "Uncaught TypeError: n is null"
解决方案
推荐阅读
- free-jqgrid - 使用格式化程序在分组标题中设置自定义文本框的 ID
- android - 如何存储凭据并从 viewmodel 访问它们
- javascript - 在 NodeJS SQL Server 中未定义
- r - 如何使用emojifont修改ggplot中图例的颜色
- javascript - 用画布填充背景
- function - 简单函数中的 rust 返回类型问题
- python - 如何在不和谐服务器中重复最新消息 - discord.py
- flutter - Flutter抛出依赖错误而不是flutter 2
- postgresql - PostgreSQL:sqlalchemy.exc.OperationalError:(psycopg2.OperationalError)无效的 sslmode 值:“fastapi”
- javascript - 将金字塔表情消息发送到 Twitch 聊天的 Javascript 函数