少儿创意编程scratch初级游戏--大家来找茬
可爱的小朋友们,今天我们来编一个“找不同”的小游戏吧。找不同的游戏也有另外的一个名字是“大家来找茬”哦。

大家来找茬
角色分析
角色:
有9个角色,1个角色是需要查找不同的两张图片,还有5个角色是两张图片中有差异的地方,另外3个角色表示开始界面、开始按钮和玩法介绍。
开始界面分析


图1开始界面脚本
分析:
第一步:
当绿旗被点击,将角色移至最前面。由于遮住了“开始按钮”,所以还得后移一层,最后“显示”开始界面
第二步:
当接收到“开始游戏”消息时,隐藏“开始界面”
注意:点击“开始按钮”角色时,会广播消息“开始游戏”
开始按钮分析


图2开始按钮脚本
分析:
第一步:绿旗被点击时,移到最前面,显示角色
第二步:当角色被点击时,隐藏角色,广播消息“开始游戏”
玩法介绍分析


图3玩法介绍脚本
分析:
当接收到“开始游戏”消息时,移到最前面,显示角色和播放一下“录音1”,播放完毕就隐藏角色
游戏图片界面分析


图4游戏图片界面脚本
分析:新建一个“计数器”变量
1:当接收到开始游戏时,移动到舞台中央,后移50层,目的是让它在所有角色之下,以免覆盖其他角色。后面其他不同的角色才能显示在这张图片之前。
2:计数器初始化,因为有处不同,所有这个变量<5时,一直等待。当等于5时,播放声音“clapping”,宣布获胜消息
图片不同1分析


图5图片不同1脚本
分析:
1:当绿旗被点击时,移到相应位置,造型切换为“1-a”
2:当角色被点击时,造型切换为”1-b”,就是带有红圈的,表示选中了不同之处的类型。
3:计数器加1,播放声音效果
图片不同2分析


图6图片不同2脚本
分析:
1:当绿旗被点击时,移到相应位置,造型切换为“2-a”
2:当角色被点击时,造型切换为”2-b”,就是带有红圈的,表示选中了不同之处的类型。
3:计数器加1,播放声音效果
图片不同3分析


图7图片不同3脚本
分析:
1:当绿旗被点击时,移到相应位置,造型切换为“3-a”
2:当角色被点击时,造型切换为”3-b”,就是带有红圈的,表示选中了不同之处的类型。
3:计数器加1,播放声音效果
图片不同4分析


图8图片不同4脚本
分析:
1:当绿旗被点击时,移到相应位置,造型切换为“4-a”
2:当角色被点击时,造型切换为”4-b”,就是带有红圈的,表示选中了不同之处的类型。
3:计数器加1,播放声音效果
图片不同5分析


图9图片不同5脚本
分析:
1:当绿旗被点击时,移到相应位置,造型切换为“5-a”
2:当角色被点击时,造型切换为”5-b”,就是带有红圈的,表示选中了不同之处的类型。
3:计数器加1,播放声音效果
小编姐姐,游戏看起来好有趣呢!我迫不及待地想编这个好玩的游戏啦!很烦恼的是我没有游戏素材,那小编姐姐有没有游戏素材呀?
--end--
声明:本文章由网友投稿作为教育分享用途,如有侵权原作者可通过邮件及时和我们联系删除:freemanzk@qq.com