积木——“碰到颜色( )?”
-
先修科目
介绍
积木“碰到颜色( )?”是侦测类别的布尔积木。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/f6203064-17ee-45e1-a08d-9f7652b66e3a.png" width="550" style="">
这个积木怎么用?
这个积木告诉我们本角色是否碰到某个颜色,“true”意思是“真”,就是碰到了,“false”意思是“假”,就是没碰到。
点击积木上的调色板即可设置颜色,
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/260a96d0-3dd3-4139-8bab-808ecf1429f8.png" width="180" style=""> 然后左右滑动“色彩”滚动条即可选择颜色。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/3ad4d870-4013-4f81-b36c-225213061104.png" width="200" style="">
示例如下:
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/1cd0c9be-1d58-4b1f-8212-cec2b3a25cdd.gif" width="800" style="border-radius: 5px; border: 1px solid #29622d;">
拾色器
你还可以直接用“拾色器”工具选择颜色。
点击“拾色器”工具后,点击舞台上的任意地方即可使用这一点上的颜色。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/39ebe5e4-ff2c-48c2-920a-969c6ed34da1.gif" width="800" style="border-radius: 5px; border: 1px solid #29622d;">
示例——赛跑游戏
可以用积木“碰到颜色( )?”制作一个赛跑游戏,如下所示。小狗会在路上一直奔跑,碰到红色的终点线就停下来。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/a7418c0d-8faa-4e46-9f49-a536892e2941.gif" width="800" style="border-radius: 5px; border: 1px solid #29622d;">
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