少儿创意编程scratch初级游戏--温馨的家庭电子相册
可爱的小朋友们,大家平时有没有为爸爸妈妈的生日或者一些特别的日子而送什么小礼物而发愁呢?今天小编姐姐告诉你哦,你可以制作一个温馨的家庭电子相册送给爸爸妈妈哦!让爸爸妈妈感动到哭!话不多说,我们立即制作吧~

温馨的家庭电子相册
效果图
点击边框调出视频工具条变量
计时器:用于倒计时,这是一个隐藏变量。
背景

图1背景图
有2个背景图,一个作为倒计时背景,一个作为展示相片时的白色背景(当然这个展示相片的背景图可以自定义成你们想要的背景哦)。另外也给背景加了音乐。
“背景”脚本

图2背景脚本
当绿旗被点击时,换成倒计时的背景,播放背景音乐,直到播放完毕,停止所有脚本。
角色

图3角色图
这个游戏一共3个角色,分别是时针、倒计时、照片
第1个角色:时针

图4时针
“时针”脚本展示

图5时针脚本
当绿旗被点击时,显示时针,移到中央,面向右。初始化计数器为3,这里的计数器代表倒计时的1、2、3。重复执行3次,每循环一次,计数器就减1。时针旋转一圈是360°,所以时针的重复执行次数*角度=360°即可。当时针旋转完3圈后,就隐藏时针,广播“开始播放”消息。
第2个角色:倒计时

图6倒计时
“倒计时”脚本展示

图7倒计时脚本
当绿旗被点击时,隐藏角色。重复执行后续程序,根据变量“计数器”的值来切换造型,如当计数器=3时,换成倒计时3的造型,显示角色。
第3个角色:照片

图8相册
小朋友们,这里的照片可以从本地上传,可以换成你们的照片哦!
“相册”脚本展示


图9相册脚本
第一步:当绿旗被点击时,隐藏角色。
第二步:当接收到“开始播放”时,换成白色背景,换成第一张图片造型,显示角色。重复执行后续程序,不断切换下一张图片,可以为每一张图片配上你想要说的文字哦

so easy!我们温馨的家庭电子相册做好啦~小朋友们可以参照这个程序的制作过程,把自己成长过程中的照片也制作成电子相册哦,留下满满的美好回忆。
--end--
声明:本文章由网友投稿作为教育分享用途,如有侵权原作者可通过邮件及时和我们联系删除:freemanzk@qq.com