
Lv.1
在 【神岛】怎么把角色的方向赋给子弹呢 中回复
2022-11-29T14:49:32 点赞:0
在 电梯代码! 中回复
async function openDoor(theDoor){
world.querySelectorAll(theDoor).forEach(async(door)=>{
for(door.time=0;door.time<31;door.time++){
door.position.x -= 0.1;//这个是门移动的距离
await sleep(50);
}
await sleep(5000);
for(door.time=0;door.time<31;door.time++){
door.position.x += 0.1;//这个是门移动的距离
await sleep(50);
}
})
}
要加上这个开门函数
2022-12-11T14:26:30 点赞:0