Navigation

    CreatiCode Scratch Forum

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

    与拖拽角色相关的积木

    二维积木
    1
    1
    173
    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

       

      先修科目

      • 使用角色

       

      介绍

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


       

      全屏拖拽模式

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

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

      使用方法如下:


       

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

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


       

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

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


       

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

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


       

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