Navigation

    CreatiCode Scratch Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    积木——“重复执行( )次”

    二维积木
    1
    1
    184
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      creaticodeteacher2-mail last edited by admin

      先修科目

      • 积木——“重复执行”

       

      说明

      我们经常需要让角色重复做多次动作。例如,为了让小狗打转,我们就需要让它向右转4次:
       

       
      利用积木“重复执行( )次”,就能让这个程序简单得多。

       

      积木:“重复执行( )次”

      这个积木会把它“嘴”里的积木重复执行一定次数:

       

      示例

      例如,我们可以这样重写上面的程序:
       

       
      显然,这个程序更简单,也更容易让别人看懂。

      假如我们要让小狗转1000次,如果没有这个重复执行积木,程序就太长了以至于没办法实现。
       

      1 Reply Last reply Reply Quote 0
      • First post
        Last post