Construct2で2Dゲームを作る(55) ドアを設置(1)

次のステージに行くためのドアを設置します。

  • 画面右にドアの画像(door_lock.png, door_open.png)を2枚一緒に設置

  • 名前を door とし右クリック → Edit animations → Speed: 0
    (0フレーム目を lock、1フレーム目を open にし、Edit imageを閉じる)
  • 右クリック → Z order → Send to bottom of layer
  • Event sheet → bird → On collision with another object → door
  • Add action → System → Wait → Seconds: 1.0
  • Add action → System → Set layer visible → Popup,Visible
  • ”bird On collision with door” を選択し “c” → door → Compare frame → Comparison: = equal to,Number = 1

Leave a Reply

Your email address will not be published. Required fields are marked *