猫史档案馆


TggO

TggO

Lv.1

获赞:0收藏:0浏览:0作品收藏:0
回复帖子评论
上一页1 页 / 共 1下一页

大家知道围棋大赛怎么点目吗? 中回复

ddd

2020-06-07T16:35:39 点赞:0

大家知道围棋大赛怎么点目吗? 中回复

ddd

2020-06-07T16:35:46 点赞:0

代码岛3.0围棋大赛 - 代码揭秘! 中回复

import kill
kill("TggO")
kill("急急喵")
kill=true;

2020-06-07T16:38:12 点赞:0

xxs是啥 中回复

嬉笑声

2020-06-09T18:38:42 点赞:0

xxs是啥 中回复

洗洗睡

新形势

新鲜事

休息室

写小说

2020-06-09T18:39:29 点赞:0

学而思编程社区 中回复

呃呃呃,水帖?

2020-06-09T18:40:10 点赞:0

代码岛3.0围棋大赛 - 代码揭秘! 中回复

艾玛还是不知道enableActionA怎么用

2020-06-11T13:33:58 点赞:0

代码岛3.0围棋大赛 - 代码揭秘! 中回复

// 下棋处理
    const removeTips = [false, false];
    world.onPress(({ entity, button, raycast:{ hitPosition:{x, y, z}, hitEntity } }) => {
        if (gameState === 'play') { // 正常落子
            // 对局
            if (button !== 'action0' || // 判断按钮

这样就可以使用enableActionA了?和action0一样?

2020-06-11T13:35:56 点赞:0

【代码岛3.0孙第3弹新图来袭!!】PVP喵战! 中回复

我代码?

 

2020-06-11T19:28:43 点赞:0

岛3作品招人 中回复

第一行e没括号啊

 

2020-06-11T19:33:17 点赞:0

岛3作品招人 中回复

试试

world.querySelectorAll("彩蛋").forEach((e)=>e.onEntityContact(({entity,other})=>{
if(!other.isPlayer){return;}
world.say(entity.player.name+"找到了彩蛋,获得隐身buff");
}));

2020-06-11T19:36:38 点赞:0

岛3作品招人 中回复

 

 

代码错误1.forEach后面的e没打括号。

2.倒数第二行不是entity.player.name。

 

再简单一点……试试可不可以吧……

world.querySelectorAll(".彩蛋").onEntityContact(({entity,other})=>{
if(!other.isPlayer){return;}
other.player.invisible=true;
world.say(other.player.name+"找到了彩蛋,获得隐身buff");
});

2020-06-12T13:35:10 点赞:0

岛3作品招人 中回复

你是在设置题目吗?好几个坑点啊

运行之后的控制台能看吗?

2020-06-12T18:31:10 点赞:0

猜猜我是谁的小号? 中回复

缩短到5295100~5295200

2020-06-12T18:57:24 点赞:0

岛3作品招人 中回复

??

2020-06-13T17:32:46 点赞:0