Lv.1
在 3个最佳、15个提名,和即将告一段落的神岛创作节 中回复
吉吉,那个我跟别人合作的那个地图不是有皮肤了吗,叫啥寻找武器小游戏的,作者昨天都补发皮肤了,为啥没给我,我的岛3名字叫XGL/功名大大,麻烦给我补发下
2022-05-14T14:54:50 点赞:0
在 玩家怎么发射子弹,火球,炮弹之类的实体教程 中回复
for (const e of world.querySelectorAll('*')) { //遍历每个实体 e.enableDamage = true //允许这个实体 受伤/喵/复活 } function spawnEntity(x,y,z,meshName){ const meshScale = 1/10 //默认模型方块大小倍数为地图方块的1/16,看你实体的大小 return world.createEntity({ mesh:meshName,//模型名 collides:true,//能碰撞 fixed:false,//固定 gravity:false,//受重力影响 meshScale:[meshScale,meshScale,meshScale],//xyz放大倍数 position:[x,y,z],//位置坐标 }) } world.onPress(({ button, entity, raycast }) => { if(button ==='action0'){//判断是否按了左键(action1是右键) console.log(` ${entity.player.name} 按下了左键`); var ball = spawnEntity(entity.position.x+raycast.direction.x, entity.position.y+raycast.direction.y, entity.position.z+raycast.direction.z,"mesh/火球.vb");//发射模型的名称 ball.velocity.x += raycast.direction.x*3; ball.velocity.y += raycast.direction.y*3; ball.velocity.z += raycast.direction.z*3;//把乘数放大可以让实体飞得更快!注意xyz放大的数都要一样!!! } }) }
2022-07-15T23:26:34 点赞:0
在 玩家怎么发射子弹,火球,炮弹之类的实体教程 中回复
for (const e of world.querySelectorAll('*')) { //遍历每个实体 e.enableDamage = true //允许这个实体 受伤/喵/复活 } function spawnEntity(x,y,z,meshName){ const meshScale = 1/10 //默认模型方块大小倍数为地图方块的1/16,看你实体的大小 return world.createEntity({ mesh:meshName,//模型名 collides:true,//能碰撞 fixed:false,//固定 gravity:false,//受重力影响 meshScale:[meshScale,meshScale,meshScale],//xyz放大倍数 position:[x,y,z],//位置坐标 }) } world.onPress(({ button, entity, raycast }) => { if(button ==='action0'){//判断是否按了左键(action1是右键) console.log(` ${entity.player.name} 按下了左键`); var ball = spawnEntity(entity.position.x+raycast.direction.x, entity.position.y+raycast.direction.y, entity.position.z+raycast.direction.z,"mesh/火球.vb");//发射模型的名称 ball.velocity.x += raycast.direction.x*3; ball.velocity.y += raycast.direction.y*3; ball.velocity.z += raycast.direction.z*3;//把乘数放大可以让实体飞得更快!注意xyz放大的数都要一样!!! } }) }
2022-07-15T23:27:35 点赞:0
在 站在自己的坟前穿着自己做的ikun套装合影(图片来自panda) 中回复
ddd
ddd
ddd
ddd
ddd
ddd
ddd
ddd
ddd
ddd
2022-09-09T18:25:38 点赞:0