用户:
天员重来查看:3 回复:7 评论:3 创建时间:2023-05-21T07:40:07
world.onPlayerJoin(({ entity }) =>{
let j=0
entity.player.runSpeed =100000
//可自调
world.onPress(({button})=>{
if(button=='action0'||button=='action1')return
j++
if(j>=1000){//可自调
entity.player.runSpeed =1
entity.player.runSpeed =false
let a = async function () {
await sleep(1000)
j++
/*
if(j>=10){
entity.player.runSpeed =10
entity.player.runSpeed =false//不知道有没报错()纯手写这里
/* */
鸣谢半只狗头为什么详见https://shequ.codemao.cn/community/541268
为提供了这个代码:
world.onPress(({button})=>{
if(button=='action0'||button=='action1')return
})
天员重来world.onPlayerJoin(({ entity }) =>{
let j=0
entity.player.runSpeed =100000
//可自调
world.onPress(({button})=>{
if(button=='action0'||button=='action1')return
j++
if(j>=1000){//可自调
entity.player.runSpeed =1
entity.player.runSpeed =false
let a = async function () {
await sleep(1000)
j++
}
}
})
})点赞0
评论