Scratch实例跟着鼠标走的甲壳虫穿越迷宫

2025-10-02 09:38:43

1、新建项目:跟着鼠标走的甲壳虫穿越迷宫。

Scratch实例跟着鼠标走的甲壳虫穿越迷宫

Scratch实例跟着鼠标走的甲壳虫穿越迷宫

2、删除角色。

Scratch实例跟着鼠标走的甲壳虫穿越迷宫

3、加入甲壳虫角色。

Scratch实例跟着鼠标走的甲壳虫穿越迷宫

Scratch实例跟着鼠标走的甲壳虫穿越迷宫

Scratch实例跟着鼠标走的甲壳虫穿越迷宫

1、切换到背景,如图所示。

Scratch实例跟着鼠标走的甲壳虫穿越迷宫

2、使用线段工具。

Scratch实例跟着鼠标走的甲壳虫穿越迷宫

3、选择线段颜色。

Scratch实例跟着鼠标走的甲壳虫穿越迷宫

4、选择线段的宽度

Scratch实例跟着鼠标走的甲壳虫穿越迷宫

5、使用线段绘制迷宫。

Scratch实例跟着鼠标走的甲壳虫穿越迷宫

6、绘制终点。

Scratch实例跟着鼠标走的甲壳虫穿越迷宫

1、给甲壳虫角色添加脚本。

Scratch实例跟着鼠标走的甲壳虫穿越迷宫

2、事件触发。

Scratch实例跟着鼠标走的甲壳虫穿越迷宫

3、添加基本动作,设置速度、碰到边缘反弹,跟着鼠标指针走。

Scratch实例跟着鼠标走的甲壳虫穿越迷宫

4、添加对角色的限制条件,如果接触到白色,就回到原点。

Scratch实例跟着鼠标走的甲壳虫穿越迷宫

Scratch实例跟着鼠标走的甲壳虫穿越迷宫

5、给角色添加通关条件。

Scratch实例跟着鼠标走的甲壳虫穿越迷宫

6、添加循环脚本。

Scratch实例跟着鼠标走的甲壳虫穿越迷宫

1、甲壳虫需要缩小。使用工具如图所示。

Scratch实例跟着鼠标走的甲壳虫穿越迷宫

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢