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

时间:2026-02-13 03:22:56

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实例跟着鼠标走的甲壳虫穿越迷宫

© 2026 智德知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com