【舞台】上有小细胞。它静止不动地待在那里。活的细胞可不是这样的哟!让我们用一些脚本“激活”它吧。
首先,我们在【角色区】选中【细胞】这个角色,给它编写如下脚本。


Step2
为了让细胞从【舞台】中央开始运动,并且看起来像真实的细胞一样轻薄透光,我们继续添加如下积木。

Step3
接下来,该让细胞发生分裂了。首先,需要有人来发出“分裂吧”的指令。谁适合做这件事情呢?那当然是【舞台】了。我们选择【角色区】右侧的【舞台】,给它添加如下积木。

Step4
既然有人发出了消息,接下来就该让细胞接收消息并采取行动了。选择【细胞】角色,继续添加如下积木。

Step5
你会发现,我们克隆出来的细胞是静止不动的,这看起来不太对劲。还记得在步骤一中我们是如何让细胞运动的吗?我们用同样的方法,让刚诞生的“新细胞”也活动起来。继续给【细胞】角色添加如下积木。

Step6
虽然我们可以看到细胞分裂的过程,但很难看清楚舞台上究竟有多少个细胞,也容易忘记它们分裂了多少次。为了能够更清晰地查看这些信息,我们还需要编写一些程序。在【代码】标签栏的【变量】分类中会发现,我们已经制作了两个“变量”:一个叫“分裂次数”,一个叫“细胞数量”。



Step7
接下来,选择【细胞】角色,添加如下积木。

到这里,我们用自己编写的 Scratch程序成功地模拟了生物实验室里的“细胞分裂”实验。让你的朋友们也来一起欣赏这一精彩的场面吧。
我们利用“舞台”“随机”等概念,模拟实现了细胞分裂的过程,并在此过程中,还直观地了解了“不规则运动”和“指数”的概念。
--end--
声明:转载此文是出于传递更多信息之目的。若有来源标注错误或侵犯了您的合法权益,请作者持权属证明与本网联系,我们将及时更正、删除,谢谢。
标签