Navigation

    CreatiCode Scratch Forum

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

    碰到边缘就反弹

    二维积木
    1
    1
    181
    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.
    • info-creaticode
      CreatiCode last edited by admin

       

      预备知识

      • 移动()步
      • 重复执行

       

      ”碰到边缘就反弹”编程积木

      只要角色触碰到舞台边缘,这个编程积木就会改变角色的方向。

       

      向右移动,向左反弹

      假设一个球体角色正在向右边移动。
       

       

      移动方向

      如果我们改变角色的方向,角色将会朝着新方向移动。
       

       

      角色被用户窗口困住

      角色是不能走出用户窗口的。一旦靠近窗口边缘,角色将会留下一个“小尾巴”,以便我们可以抓住它。
       

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