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 703 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

     

    先修科目

    • 使用角色

     

    介绍

    如果想运用拖拽事件,你需要用事件类别的这3个帽子积木:“二维拖动开始时”、“被二维拖动的时候”、“二维拖动停止时”。

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/37cd7b01-06f1-47aa-8f04-0d5cc8e1f92d.png" width="600" style="">
     

    全屏拖拽模式

    默认情况下,在全屏模式不能拖拽角色。

    如果想在全屏舞台上拖拽角色,必须用侦测类别中的积木”将拖动模式设为( )"Untitled2.png
    然后从下拉菜单中选择“可拖动”。 Untitled3.png

    使用方法如下:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/21327f42-7ec1-4d7d-a999-e602419a0e35.gif" width="900" style="border-radius: 5px; border: 1px solid #29622d;">
     

    积木:“二维拖动开始时”

    当你开始拖拽角色时,就会触发这个积木。例如,当我们开始拖拽小狗时,可以让小狗换成闭着眼睛的造型。

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/c8c8297b-4c67-478e-a99e-bded45ff3916.gif" width="900" style="border-radius: 5px; border: 1px solid #29622d;">
     

    积木:“被二维拖动的时候”

    当你在舞台上拖拽角色(仅全屏模式),这个积木会重复不断地运行。

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/98e28e29-28a1-4875-a51d-fced6eea46e9.gif" width="900" style="border-radius: 5px; border: 1px solid #29622d;">
     

    积木:“二维拖动停止时”

    当你停止拖拽角色并松开鼠标时,这个积木就会运行。在如下示例中,每当我们停止拖拽,就让小狗回到舞台中心。

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/bc5d2d63-dd70-4b8e-9a29-09607b29ed78.gif" width="900" 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