这篇文章和上一篇文章《scratch3编程02-使用克隆来编写小游戏》类似(已经完全掌握了克隆的可以忽略这篇文章),两篇文章都使用到了克隆来编写一个小游戏,这篇文章与上篇文章不同的是,本体在进行克隆操作时,不仅向右移动同时也会对自己进行克隆,以及使用运动模块中的移动,来将本体移动到其它位置继续向右克隆。
目录
1,效果
反弹球
2,代码块
1)星星
星星角色可以在角色素材里面搜索"start"找到。

2)球
球角色可以在角色素材里面搜索"ball"找到。

3)云朵衬底
scratch的sb3文件见专栏链接。

克隆还用到很多地方,用得多了就会发现它极其方便好用。例如下面的下雪效果:

有问题请在评论区留言或者是私信我(回复时间不超过1天)。