Return to Video

Sprites In Action

  • 0:00 - 0:00
    音樂
  • 0:04 - 0:06
    音樂
  • 0:07 - 0:09
    既然你已經學會瞭如何使用Sprite Lab
  • 0:09 - 0:11
    你會想要製作你的程序
  • 0:11 - 0:13
    當有人玩它時 程序就會有反應
  • 0:13 - 0:14
    要做到這一點
  • 0:14 - 0:18
    你會使用事件塊 比如當點擊
  • 0:18 - 0:22
    觸摸時被稱為事件塊
  • 0:22 - 0:26
    連接到事件塊的代碼 當遇到適當的輸入
  • 0:26 - 0:28
    比如點擊或觸碰時
  • 0:28 - 0:28
    就會檢測到
  • 0:32 - 0:33
    例如
  • 0:33 - 0:40
    如果你附加這個改變大小塊連接到外星人點擊的事件塊上
  • 0:40 - 0:42
    當外星人被點擊時 精靈大小會改變
  • 0:50 - 0:53
    請注意 事件塊並沒有插入主程序
  • 0:53 - 0:54
    相反
  • 0:54 - 0:56
    他們創建自己的小程序
  • 0:57 - 0:58
    記住
  • 0:58 - 1:01
    即使這個事件雖然只發生了一次
  • 1:01 - 1:03
    但是直到你告訴他們停止時 事件才會消失
  • 1:05 - 1:10
    如果不希望多個事件組合行為 可以使用stop塊
  • 1:30 - 1:30
    音樂
  • 1:32 - 1:33
    使用事件
  • 1:33 - 1:37
    你可以創造富有想像力的節目和互動世界
  • 1:37 - 1:37
    試試吧
Title:
Sprites In Action
Description:

Start learning at http://code.org/

Stay in touch with us!
• on Twitter https://twitter.com/codeorg
• on Facebook https://www.facebook.com/Code.org
• on Instagram https://instagram.com/codeorg
• on Tumblr https://blog.code.org
• on LinkedIn https://www.linkedin.com/company/code-org
• on Google+ https://google.com/+codeorg

more » « less
Video Language:
English
Team:
Code.org
Project:
CSF '21-'22
Duration:
01:46

Chinese, Traditional subtitles

Revisions