赞 | 52 |
VIP | 0 |
好人卡 | 0 |
积分 | 47 |
经验 | 0 |
最后登录 | 2024-5-17 |
在线时间 | 667 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 4740
- 在线时间
- 667 小时
- 注册时间
- 2021-3-24
- 帖子
- 523
|
把事件在地图显示出来是分两步的
你只做了 Game_Map.prototype.setupEvents这里干的
而行走图是在这步装到地图上的
- Spriteset_Map.prototype.createCharacters = function() {
- this._characterSprites = [];
- for (const event of $gameMap.events()) {
- this._characterSprites.push(new Sprite_Character(event));
- }
- for (const vehicle of $gameMap.vehicles()) {
- this._characterSprites.push(new Sprite_Character(vehicle));
- }
- for (const follower of $gamePlayer.followers().reverseData()) {
- this._characterSprites.push(new Sprite_Character(follower));
- }
- this._characterSprites.push(new Sprite_Character($gamePlayer));
- for (const sprite of this._characterSprites) {
- this._tilemap.addChild(sprite);
- }
- };
复制代码 |
|