极客小将

您现在的位置是:首页 » scratch编程资讯

资讯内容

Scratch少儿编程第十三讲 出发吧小船

极客小将2020-11-04-
出发吧小船 1、编辑角色和小船破碎的造型

出发吧小船

1、编辑角色和小船破碎的造型

upload/article/images/2020-11-04/944825a9016697d7f85992e24ca3a876.jpgupload/article/images/2020-11-04/6429925c7ce404892c705b1a1cf78228.jpgupload/article/images/2020-11-04/e1af0a989f443be65c8459fd0ee3d3a6.jpgupload/article/images/2020-11-04/6429925c7ce404892c705b1a1cf78228.jpgupload/article/images/2020-11-04/6429925c7ce404892c705b1a1cf78228.jpgupload/article/images/2020-11-04/06b685a1ed0d8f60887d6849bdf3a691.jpgupload/article/images/2020-11-04/ee6de3238efe3830a33e6db7c044f35d.jpg

2、绘制障碍

upload/article/images/2020-11-04/e2fced5af77c9607d727382d9329787c.jpgupload/article/images/2020-11-04/6429925c7ce404892c705b1a1cf78228.jpgupload/article/images/2020-11-04/0c66ed980e969835340ac08a3f1269bb.jpgupload/article/images/2020-11-04/6429925c7ce404892c705b1a1cf78228.jpgupload/article/images/2020-11-04/ee6de3238efe3830a33e6db7c044f35d.jpg

3、编辑小船

upload/article/images/2020-11-04/d3ff46007e8725df86d10821490bee40.jpg

    小船的程序实现的效果就是是跟随鼠标移动,用到了面向、移到鼠标指针、移到舞台左下角(初始位置)。

upload/article/images/2020-11-04/6429925c7ce404892c705b1a1cf78228.jpgupload/article/images/2020-11-04/c31187679ff5ca1a79edc9427dfa5526.jpg

     这里新加入了一个条件判断,小船角色与鼠标的距离大于5时,面向鼠标移动1步。

upload/article/images/2020-11-04/6429925c7ce404892c705b1a1cf78228.jpgupload/article/images/2020-11-04/94147ec780d0891d0933c105b222a0e0.jpg

     这里加入了小船到达终点的程序,大家看一下就行啦!

upload/article/images/2020-11-04/6429925c7ce404892c705b1a1cf78228.jpgupload/article/images/2020-11-04/f0c4b22927e3324470343103bad8cf13.jpg

    如果小船碰到障碍(障碍的颜色用取色笔取一下),那么小船损坏,换成第二个造型。

upload/article/images/2020-11-04/6429925c7ce404892c705b1a1cf78228.jpgupload/article/images/2020-11-04/238a7650a6af1754def669a7c165f565.jpg

     这个是在右侧可以旋转的障碍的程序,这里需要注意的是调整障碍的中心点,并且用时间变量计时,看多长时间可以到达终点哟!

预约试听课

已有385人预约都是免费的,你也试试吧...