Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. 知识库
  3. 二维积木
  4. 积木——“到( )的距离”

积木——“到( )的距离”

Scheduled Pinned Locked Moved 二维积木
1 Posts 1 Posters 740 Views
  • 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 Offline
    C Offline
    creaticodeteacher2-mail
    wrote on last edited by admin
    #1

     

    先修科目

    • 组装积木

     

    介绍

    积木“到( )的距离”是侦测类别的报表积木。

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/468de4a8-6046-4d4d-9883-4d27a9b91507.png" width="600" style="">
     

    这个积木怎么用

    这个积木会告诉你本角色到选定角色的距离。你可以点击下拉菜单选择“鼠标指针”或其他角色作为目标对象。

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/0fc4f827-226a-4db6-8ce0-172d7d41e51b.png" width="250" style="">
     
     

    到(鼠标指针)的距离

    当你选择“鼠标指针”https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/7506f4db-bcd8-487d-afb3-1494e9ab5df2.png" width="70" style="">作为目标对象,该积木会显示本角色到鼠标指针的距离。

    如下所示,每当点击积木“到(鼠标指针)的距离”,就显示球员(本角色)到鼠标指针的距离。无论鼠标指针在舞台中还是舞台外,这个积木都管用。

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/61ada473-dc03-49be-b2cc-ae9b49403a74.gif" width="1000" style="border-radius: 5px; border: 1px solid #29622d;">
     

    到(角色)的距离

    如果你选择某个角色作为目标对象,该积木就显示本角色到选定角色的距离。

    如下所示,每当点击积木“到(篮球)的距离”,积木就显示球员(本角色)到篮球(选定角色)的距离。

    注意:项目中至少要有2个角色,然后才能从下拉列表中选择另一个角色。

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/50438c4c-070a-42ad-b669-a48217dff239.gif" width="1000" style="border-radius: 5px; border: 1px solid #29622d;">
     
     

    动画

    你可以用积木“到( )的距离”制作下面这个篮球游戏动画。
    每当篮球与篮筐的距离小于等于70,背景就显示“进球得分!”

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/80e0d0b3-c8eb-46f8-a785-0d79af231cff.gif" width="1000" style="border-radius: 5px; border: 1px solid #29622d;">
     

    1 Reply Last reply
    0

    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
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode