小学生Scratch3.0创意编程(5)-小猫怕痒痒

 蓝色智慧 发表于 2021年10月20日 教育资源  19
蓝色智慧
LV 7 [大学]
最后在线:30天前
加入时间:2年前
主帖:230  跟帖:5

学习积木:

选项卡积木
功能
  当角色被点击时执行程序
 
  将角色移动到随机位置。通过下拉菜单可以更换为“鼠标指针”使角色移动到鼠标指针所在的位置。


今天出场的角色是一个怕痒的小猫,要是用鼠标去碰它,它会迅速跑到别的地方去。这个程序非常好玩,但编写程序是特别简单的,下面我们一起来实现这个程序。

1、舞台中的小猫不用动,直接编写如下代码:


2、现在去用鼠标点击小猫试一试吧!是不是特别有意思。

3、你可以加一个背景美化程序,还可以换成别的角色做一个属于自己的躲避鼠标的游戏^v^

论坛主帖
231
论坛跟帖
2
在线访客
0
今日主帖
0
今日跟帖
0
今日注册
0
207
http://76w.net/sq/index.php/gentie.html
http://76w.net/sq/index.php/postzan.html
http://76w.net/sq/index.php/postcai.html
http://76w.net/sq/index.php/postshoucang.html
http://76w.net/sq/index.php/gentiezan.html
http://76w.net/sq/index.php/gentiecai.html
http://76w.net/sq/index.php/huifu.html
http://76w.net/sq/index.php/xiugai.html
http://76w.net/sq/index.php/shanchugentie.html
1
XzA=
1
© 2023 天慧网·互动社区 版权所有
Powered by JianYuLunTan
蒙ICP备2021000971号-1
http://76w.net/sq/index.php/feedback.html
http://76w.net/sq/index.php/qiandao.html
http://76w.net/sq/index.php/denglu.html
0
http://76w.net/sq/index.php/adenglu.html
剑鱼论坛