Lv.1
一个满级野生双职业Box3er
签名:嗷嗷嗷
在 大佬们快教我代码吧 中回复
如果对代码编程一窍不通,那么就先学习一门简单(可以帮你更好的了解诸如for,if等通用语法)的语言(推荐python,)(会的话可跳过)(一定要好好学,这是基础),然后根据API文档基础教程了解JS基础格式,在根据示例代码拼凑成自己的代码(要进行微调),多看吉吉的教程,多复制大佬的代码,然后根据大佬代码和API学习高难度语法(对高难度语法一定要有基础了解,这就是最开始学习简单语言的意义)(我就是这样学的JS函数),这时你一定算是小佬了,最后慢慢从代码中学习
2022-03-25T10:17:38 点赞:1
在 求求了迷失冷光,求求了CEO~ 中回复
world.onPlayerJoin(async({entity})=>{
entity.player.onPress(async({button,raycast})=>{
if(button == Box3ButtonType.ACTION1){
const result = await entity.player.dialog({
type: Box3DialogType.SELECT,
title: "武器",
options: ['',''],
})
if(!result || result === null){
return;
}
switch (result.index) {
case 0:
break;
default:
};
};
});
})2022-03-25T11:22:16 点赞:0
在 求求了迷失冷光,求求了CEO~ 中回复
entity.player.addWearable({
bodyPart: Box3BodyPart.LEFT_HAND,//穿戴部位,
mesh: 'mesh/模型.vb',//模型名
orientation: new Box3Quaternion(1, 1, 1, 1).rotateY(Math.PI/2),//四元数
scale: new Box3Vector3(1, 1, 1),//放大倍数
offset: new Box3Vector3(1, 1, 1),//位移
});
/*
建议先在地图中将模型调到想要的角度,然后复制模型四元数,粘贴到orientation
然后微调放大倍数和位移
*/
2022-03-25T19:54:38 点赞:0
在 无奖问答2: 中回复
// 使用第一人称视角
world.onPlayerJoin(({ entity }) => {
entity.player.cameraMode = Box3CameraMode.FPS;
});
2022-03-25T19:58:26 点赞:1
在 21天建模打卡大挑战,有手就行! 中回复
imgsrc="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/6d/zhh_thumb.gif"alt="emotion_左哼哼"
2022-03-30T07:44:36 点赞:1
在 21天建模打卡大挑战,有手就行! 中回复
imgsrc="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/5c/huanglianwx_thumb.gif"alt="emotion_微笑"width="107"height="107"
2022-03-30T08:04:46 点赞:1
在 21天建模打卡大挑战,有手就行! 中回复
imgsrc="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/6d/zhh_thumb.gif"alt="emotion_左哼哼"
2022-03-30T09:10:18 点赞:1
在 21天建模打卡大挑战,有手就行! 中回复
吉吉喵可怜可怜可怜可怜我吧,呜呜呜呜,我就想要个稀有匹夫imgsrc="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/9d/sada_thumb.gif"alt="emotion_泪"imgsrc="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/9d/sada_thumb.gif"alt="emotion_泪"imgsrc="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/9d/sada_thumb.gif"alt="emotion_泪"
2022-03-30T09:29:05 点赞:1
在 21天建模打卡大挑战,有手就行! 中回复
我吐了呀,为什么还不发皮肤 imgstyle="display:block;margin-left:auto;margin-right:auto;"src="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/9e/t_thumb.gif"alt="emotion_吐"width="70"height="70"
2022-03-30T10:50:30 点赞:0