显示、隐藏角色
-
先修科目
说明
积木“显示”、“隐藏”属于外观类别的堆栈积木。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/2adf7e28-faf1-44e6-a656-b2422373ac5b.png" width="550" style="">
积木:“显示”
如果角色被隐藏,积木“显示”用来让它在舞台上显示。
注意:如果角色已经是显示状态,那么当你运行积木“显示”,就不会有什么变化。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/4955091b-3a2f-4a43-a798-2c32c68a20a8.gif" width="900" style="border-radius: 5px; border: 1px solid #29622d;">
积木:“隐藏”
积木“隐藏”用来使当前角色在舞台上隐藏(看不见它)。
注意:如果角色已经隐藏,那么,当你运行积木“隐藏”,就不会有什么变化。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/5d84dd25-9260-48e4-80bf-0703616ffb08.gif" width="900" style="border-radius: 5px; border: 1px solid #29622d;">
单选按钮:“显示”、“隐藏”
还有一个方法能显示、隐藏角色,就是点击角色窗格里的这两个单选按钮
当你使用积木显示、隐藏角色,这两个按钮也会跟着切换状态。https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/7359dc79-726d-46e5-a917-44b1656ebf3e.gif" width="900" style="border-radius: 5px; border: 1px solid #29622d;">
带“显示”和“隐藏”的动画
在这个程序中,每当你点击幽灵这个角色,它就会隐藏,随机飞到一个地方,然后再次出现。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/570d609e-523c-4d63-b298-ed16329a0531.gif" width="900" 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