用户:
YDS尹子查看:2719 回复:58 评论:84 创建时间:2020-05-30T12:15:01
神岛吉吉喵不错加油!
点赞0
评论
吉吉喵~
有事吗
捕捉!
捕捉而已awa
(吉吉喵啥时候能公布枪城代码a)
保密嘿嘿嘿
捕捉吉吉喵
吉吉喵!
在吗?!
吉吉喵可以说下那个换枪代码吗(就不是完全公布了嘛)~~~(卖萌)
吉吉,现在还给权限吗
能教我奇妙城市的飞机怎么做的吗
我的加分题对了呀
捕捉!
吉吉喵,我要权限
吉吉权限!
吉吉喵~!
你好,请问有事吗
没事啦日常打招呼
吉吉,为什么代码中有个MVP怎么用
换枪代码我会
YDS尹子公开代码:
(有一些代码之外的准备事项:
1.放置模型,添加标签“gb2”
(模型的话是一面墙一个,这样中间才能站人)
2.把模型放置到合适位置
注意:若行驶方向不对请修改Velocity的方向
)
(async function(){
while (true) {
for(let i=0;i<15;i++){//火车向前加速
world.querySelectorAll(".gb2").forEach((entity)=>{
entity.velocity.z-=0.1;
})
await sleep(120)
}
await sleep(4500)//行驶中
for(let i=0;i<15;i++){//火车向前减速
world.querySelectorAll(".gb2").forEach((entity)=>{
entity.velocity.z+=0.1;
})
await sleep(120)
}
await sleep(3000)//停站中
for(let i=0;i<15;i++){//火车向后加速
world.querySelectorAll(".gb2").forEach((entity)=>{
entity.velocity.z+=0.1;
})
await sleep(120)
}
await sleep(4500)//行驶中
for(let i=0;i<15;i++){//火车向后减速
world.querySelectorAll(".gb2").forEach((entity)=>{
entity.velocity.z-=0.1;
})
await sleep(120)
}
await sleep(3000)//停站中
} })();
world.querySelectorAll(".gb2").forEach((entity)=>{
entity.friction=1;
})点赞0
评论
沙发~
对了,快去https://box3create.codemao.cn/games/19857ef274f531a6e054,我给你权限了
不行啊
给你速建了一栋楼,请查收(用代码造的)
那飞机也是同一个道理吧
是 Python 吗?
dddd
喵喵d
谢谢
蟹蟹~
啊啊啊伊子最好了
师傅好
我在https://box3create.codemao.cn/games/19857ef274f531a6e054里自己建了一个~
求电梯代码和存档点代码
我来
能帮我看一下哪里错了吗?@YDS伊子https://box3create.codemao.cn/games/2d9eacb5dfbac5457452
其实不是掏空模型,是每一面墙都是个模型
可是我这么做了,但是我的火车还是开不动 https://box3create.codemao.cn/games/2d9eacb5dfbac5457452
麻烦你帮我看一下,可以吗
https://box3create.codemao.cn/games/2d9eacb5dfbac5457452?p=Tfyz1QqWaphZcCxzhMev54MdX28nO1FeXpM%2Fvpp1I1A8%2BH7G%2BoLgPkuro%3D
https://box3create.codemao.cn/games/2d9eacb5dfbac5457452?p=Tfyz1QqWaphZcCxzhMev54MdX28nO1FeXpM%2Fvpp1I1A8%2BH7G%2BoLgPkuro%3D
https://box3create.codemao.cn/games/2d9eacb5dfbac5457452?p=GXHRm26mboicNABzBNHWbiDjAQSulA0%2BBYGulrBcXRA%2BDP7m%2BoLgPkuro%3D
https://box3create.codemao.cn/games/df0ce483109d1e026661 链接
代码没用啊,角色都没动
提示:喵=n c
一起建图吗
js
楼主楼主~
我弄了一个火车不会移出世界的代码~
↓
(async function(){
while (true) {
for(let i=0;i<15;i++){//火车向前加速
world.querySelectorAll(".gb2").forEach((entity)=>{
entity.velocity.z-=0.07;
})
await sleep(120)
}
await sleep(4500)//行驶中
for(let i=0;i<15;i++){//火车向前减速
world.querySelectorAll(".gb2").forEach((entity)=>{
entity.velocity.z+=0.07;
})
await sleep(120)
}
await sleep(3000)//停站中
for(let i=0;i<15;i++){//火车向后加速
world.querySelectorAll(".gb2").forEach((entity)=>{
entity.velocity.z+=0.07;
})
await sleep(120)
}
await sleep(4500)//行驶中
for(let i=0;i<15;i++){//火车向后减速
world.querySelectorAll(".gb2").forEach((entity)=>{
entity.velocity.z-=0.07;
})
await sleep(120)
}
await sleep(3000)//停站中
} })();
world.querySelectorAll(".gb2").forEach((entity)=>{
entity.friction=1;
})
把速度调成0.07~
就可以哦~
点赞0
评论
此代码改编/借鉴了楼主的代码