17
Dept. of Electronics Engineering Construct 2 事件表作業 電子工程系電腦遊戲設計組 吳錫修 2014.7.16

Construct 2事件表作業

Embed Size (px)

DESCRIPTION

介紹Construct 2事件表作業方式及相關編輯作業功能

Citation preview

Page 1: Construct 2事件表作業

Dept. of Electronics Engineering

Construct 2 事件表作業電子工程系電腦遊戲設計組

吳錫修

2014.7.16

Page 2: Construct 2事件表作業

事件表(Event sheet) 1/2

用來描述當發生特定狀況發生時 (條件),所要執行的回應作業 (動作)

每個遊戲場景可指定⼀個對應的事件表

Wu, ShyiShiou2

Construct 2每個tick會自動由上到下依序執行事件表內容

Page 3: Construct 2事件表作業

事件表(Event sheet) 2/2

事件組成

IF Conditions THEN Actions

單擊Margin處,可以選取整個event

Conditions :事件發生條件

事件發生對象 (物件)

物件發生了什麼事件?

Aactions:發生事件後要做什麼?

作用在那個物件上?

要做什麼?

Wu, ShyiShiou3

Margin

Event Block

ActionsConditions

Page 4: Construct 2事件表作業

建立事件

建立Event Block雙擊Event sheet作業區,或點擊Event sheet作業區中的Add event

加入Actions點擊Event Block後的Add action,建立事件之Actions

Wu, ShyiShiou4

Page 5: Construct 2事件表作業

事件註解

Margin快顯功能表 Add/Add comment

Wu, ShyiShiou5

Page 6: Construct 2事件表作業

刪除事件

點擊Margin (選取整個事件),按下Delete鍵

Margin快顯功能表 Delete

Wu, ShyiShiou6

Page 7: Construct 2事件表作業

暫時將事件禁用

Margin快顯功能表 Toggle disabled

再執行⼀次則可重新啟用該事件

Wu, ShyiShiou7

Page 8: Construct 2事件表作業

建立多條件事件 1/2

多個條件同時發生

IF condition 1 AND condition 2 THEN actions

1. Add event

2. Conditions快顯功能表 Add another condition

Wu, ShyiShiou8

Page 9: Construct 2事件表作業

建立多條件事件 2/2

多個條件,其中任⼀條件發生

IF condition 1 OR condition 2 THEN actions

1. Add event

2. Conditions快顯功能表 Add another condition

3. Margin快顯功能表Make 'Or' block

Wu, ShyiShiou9

Page 10: Construct 2事件表作業

建立子事件

父事件的action執行後才會執行子事件

父事件與子事件可以有各自的action

Margin快顯功能表 Add/Add sub-event

Wu, ShyiShiou10

Page 11: Construct 2事件表作業

使用反向條件

由Conditions快顯功能表 Invert

Wu, ShyiShiou11

Page 12: Construct 2事件表作業

使用ELSE條件

Wu, ShyiShiou12

Margin快顯功能表 Add/Add 'Else'

Page 13: Construct 2事件表作業

使用事件群組 1/3

將相關作業事件群組起來以方便管理

1. 在事件表中新增群組 (Add group)

Wu, ShyiShiou13

Page 14: Construct 2事件表作業

使用事件群組 2/3

2. 在群組中加入子事件 (Add sub-event)

Wu, ShyiShiou14

Page 15: Construct 2事件表作業

使用事件群組 3/3

群組作業

Toogle disabled啟用/禁用群組事件

Toggle bookmark標示/移除書籤

Toggle breakpoint設置/清除中斷點

Replace object更換群組中的物件

Expand all groups展開所有群組

Collapse all groups摺疊所有群組

Wu, ShyiShiou15

Page 16: Construct 2事件表作業

使用全域變數 (global variable)

Construct 2專案共用

支援Number及Text資料型別

Wu, ShyiShiou16

Page 17: Construct 2事件表作業

使用區域變數 (local variable)

定義在群組或事件中,僅供所屬群組或所屬事件使用

Wu, ShyiShiou17