积木——“等待( )”
-
先修科目
介绍
积木“等待( )”是控制类别的堆栈积木。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/14383b66-ed47-4ff0-9390-8f48cdfed1a7.png" width="550" style="">
这个积木怎么用?
这个积木使程序暂停,直到输入框中的条件变为“真”。换而言之,只要条件为“假”,这个积木下面连接的积木就不运行。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/f3daed38-8b5a-4cb7-a3ca-7b8e9cedf9b7.gif" width="900" style="border-radius: 5px; border: 1px solid #29622d;">
如果条件本来就为真
如果“等待( )”指定的条件本来就为真,那么这个积木根本就不等待。
例如,在如下录屏中,“我的变量”的值大于20,所以积木“等待( )”不等待,下面的积木“下一个造型”会立即运行。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/d5a7976c-164f-46b9-aaf1-525ad355bfe7.gif" width="900" style="border-radius: 5px; border: 1px solid #29622d;">
“等待( )”计时器动画
在这个示例中,积木“等待( )”会等着计时器到达“10秒”,然后把背景换成“游戏结束”。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/083729c4-21c8-42f6-b090-480cc2e62c50.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