积木——“当碰到( )时”
-
先修科目
介绍
积木“当碰到( )时”属于事件类别的帽子积木。

这个积木怎么用?
当角色碰到另一个对象,比如“鼠标”、“舞台边缘”或者其他角色,该积木就会运行它下面连接的积木。
点击下拉菜单即可从3个选项中选择其中之一。

当碰到(鼠标)
如果你选择“鼠标”
%E4%BD%9C%E4%B8%BA%E7%9B%AE%E6%A0%87%E5%AF%B9%E8%B1%A1%EF%BC%8C%E9%82%A3%E4%B9%88%EF%BC%8C%E6%AF%8F%E5%BD%93**%E9%BC%A0%E6%A0%87**%E7%A2%B0%E5%88%B0%E6%9C%AC%E8%A7%92%E8%89%B2%EF%BC%8C%E8%AF%A5%E7%A7%AF%E6%9C%A8%E5%B0%B1%E4%BC%9A%E8%BF%90%E8%A1%8C%E5%AE%83%E4%B8%8B%E9%9D%A2%E8%BF%9E%E6%8E%A5%E7%9A%84%E7%A7%AF%E6%9C%A8%E3%80%82" target="_blank" rel="noopener noreferrer nofollow ugc">https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/7506f4db-bcd8-487d-afb3-1494e9ab5df2.png作为目标对象,那么,每当**鼠标**碰到本角色,该积木就会运行它下面连接的积木。在如下示例中,每当鼠标碰到水母,水母就会说“你好!”。

当碰到(舞台边缘)
如果你选择“舞台边缘”作为目标对象,那么,每当本角色碰到舞台的4个边缘,该积木下面的积木就会运行。
在如下示例中,每当水母碰到舞台边缘(以红色突出显示),它就会更换造型。

当碰到(角色)
如果你选择其他角色作为目标对象,那么,每当本角色碰到选取的目标角色,下面的积木就会运行。
在如下示例中,每当水母(本角色)碰到鱼(选取的目标角色),水母就变大。
注意:项目中至少要有2个角色,你才能在下拉列表中选取其他角色。

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login