13
Dept. of Electronics Engineering Construct 2 Platform behavior 電子工程系電腦遊戲設計組 吳錫修 2014.4.23

Platform behavior of Construct 2

Embed Size (px)

DESCRIPTION

介紹Construct 2之platform行為模組功能,包括屬性、事件條件及事件動作

Citation preview

Page 1: Platform behavior of Construct 2

Dept. of Electronics Engineering

Construct 2 Platform behavior

電子工程系電腦遊戲設計組

吳錫修

2014.4.23

Page 2: Platform behavior of Construct 2

Platform行為 1/3

Platform行為模組賦予物件向上跳躍及左、右移動能力

常應用在平台遊戲中

Wu, ShyiShiou2

Page 3: Platform behavior of Construct 2

Platform行為 2/3

Platform行為模組具備自由落體性質,可站在Solid或Jump-thru性質之物件上

Platform行為模組可由下往上穿越Jump-thru性質物件

Wu, ShyiShiou3

Page 4: Platform behavior of Construct 2

Platform行為 3/3

使用Set mirrored切換物件向左移動及向右移動時的圖片(動畫)方向

Wu, ShyiShiou4

Page 5: Platform behavior of Construct 2

Platform properties 1/2

用來調整platform行為參數

Max speed物件之移動速度上限,單位pixels/second,預設值330

Acceleration加速度,單位pixels/second2 ,預設值1500

Deceleration減速度,單位pixels/second2 ,預設值1500

Jump strength跳躍力道,單位pixels/second ,預設值650

Gravity物件所受的重力加速度,單位pixels/second2 , 預設值1500

Wu, ShyiShiou5

Page 6: Platform behavior of Construct 2

Platform properties 2/2

Max fall speed物件自由掉落的速度上限,單位pixels/second ,預設值1000

Default controls是否使用預設的方向鍵來控制物件移動。設為No時,必須自行在事件表建立控制物件移動之事件作業

Initial state是否在⼀開始就啟用platform行為模組功能

Wu, ShyiShiou6

Page 7: Platform behavior of Construct 2

Platform conditions 1/2

提供給事件表的事件條件

Compare speed比對物件目前的移動速度,單位pixels/second

Is by wall檢測物件是否緊鄰牆壁物件

Is falling物件目前是否為自由掉落狀態

Is jumping物件目前是否為向上移動狀態

Is moving檢查物件目前是否處於移動狀態

Wu, ShyiShiou7

Page 8: Platform behavior of Construct 2

Platform conditions 2/2

Is on floor物件目前是否站立在實體平台上

On fall用來觸發物件的掉落動畫

On jump用來觸發物件的跳躍動畫

On landed用來觸發物件的落地動畫

On moved用來觸發物件的移動動畫

On stopped用來觸發物件的停止移動動畫

Wu, ShyiShiou8

Page 9: Platform behavior of Construct 2

Platform actions 1/3

事件表中可用的actions

Fall through當物件是站在⼀個Jump-thru性質的平台上時,可使用Fall through讓物件往下掉落

Set acceleration變更物件的加速度,單位pixels/second2

Set deceleration變更物件的減速度,單位pixels/second2

Set gravity變更物件的重力加速度,單位pixels/second

Set jump strength變更物件的跳躍力道,單位pixels/second

Wu, ShyiShiou9

Page 10: Platform behavior of Construct 2

Platform actions 2/3

Set max fall speed變更物件最大的掉落速度,單位pixels/second

Set max speed變更物件的速度上限,單位pixels/second

Set angle of gravity變更物件所受重力角度,預設為90度 (垂直向下);在場景旋轉時,可產生相關連的作用

Set enabled啟用或禁用物件platform行為

Set ignoring input設定物件是否忽略按鍵輸入。當輸入被忽略,按任意控制鍵沒有作用;然而物件可以繼續移動

Wu, ShyiShiou10

Page 11: Platform behavior of Construct 2

Platform actions 3/3

Set speed變更物件speed屬性值

Set vector X變更物件之X軸分量速度, 單位pixels/second

Set vector Y變更物件之Y軸分量速度, 單位pixels/second

Simulate control模擬按下移動控制鍵。通常應用在Default controls屬性值為No時。

Wu, ShyiShiou11

Page 12: Platform behavior of Construct 2

Platform expressions 1/2

物件實體在Runtime時的platform行為資料

Acceleration取得物件之加速度設定值

Deceleration取得物件之減速度設定值

Gravity取得物件之重力加速度設定值

JumpStrength取得物件之跳躍力道設定值

MaxFallSpeed取得物件之掉落速度上限設定值

Wu, ShyiShiou12

Page 13: Platform behavior of Construct 2

Platform expressions 2/2

MaxSpeed取得物件之上限速度設定值

GravityAngle取得物件目前之重力加速度角度值

MovingAngle取得物件目前的移動角度值

Speed取得物件目前的速度值

VectorX取得物件目前的X軸分量速度值

VectorY回傳物件目前的Y軸分量速度值

Wu, ShyiShiou13