
Lv.1
念往昔岁月
签名:dao3 羽岚.龍族[原]:Aoken 是我 2022-05-29 22:55:02 注册此账号 如想知道自己账号注册时间 记得先登录好账号可打开:https://api.codemao.cn/web/users/details 查看create_time的数字 并在 https://tool.lu/timestamp/ 进行时间轴转换
在 跑酷怎么做 中回复
for (const e of world.querySelectorAll('*')) {//遍历所有实体
if (e.id.startsWith('存档点','存档点1')) {//如果当前实体名左边部分刚好是"存档点", 比如 存档点-1 存档点-2...
e.collides = true //开启碰撞
e.fixed = true //固定实体不被推移
e.meshScale = e.meshScale.scale(1.2) //放大1.2倍
e.onEntityContact(({ other }) => { //每当存档点碰到另一个实体
if (other.isPlayer) { //另一个实体是玩家
if (e.position !== other.player.spawnPoint) { // 检测当前存档点是否玩家重生点, 避免反复在同一个存档点做多余的保存
other.player.directMessage('到达新的重生点') // 给玩家发消息
other.player.spawnPoint = e.position // 喵家重生点坐标设置成存档点的坐标
}
}
})
}
}
world.onPlayerJoin(({ entity }) => {
entity.onFluidEnter(() => {//当玩家掉到水里
entity.position.copy(entity.player.spawnPoint)
entity.position.y += 4
})
})2022-08-24T11:23:43 点赞:0
在 【Xiaoxiao UI Free Shop】小小UI免费店(又叕叕沉了) 中回复
UI类型: CoCo作品图标
用在何处:CoCo
主要颜色: 浅蓝色,浅绿色,粉色
备注(根据Code社区的名称来画)
2022-08-24T13:52:12 点赞:0
在 【Python】编程猫对线大杀器疑似流出? 中回复
2022-08-25T13:09:25 点赞:0
在 如何防止编程猫的动画乱码(仅限电脑浏览器用户) 中回复
https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%82%B9%E8%B5%9E.gif
2022-08-25T16:00:13 点赞:0
在 如何防止编程猫的动画乱码(仅限电脑浏览器用户) 中回复
https://static.codemao.cn/emoji/codemao/编程猫_点赞.gif
2022-08-25T16:00:58 点赞:0
在 [Box3不太喵]移动端进入电脑版社区 中回复
2022-08-28T12:43:21 点赞:0