Verse Library verse

01 Verse Snippets Module

Delays initial game seconds, then enables a purple visual effect and plays a sound for a dramatic intro.

extracted-snippets/community/snippets/github/stapcyborg__paradox-kit__verse-snippets/01-verse-snippets-module.verse

# Source URL: https://github.com/Stapcyborg/paradox-kit/tree/main/verse-snippets
# Local doc:  epic-docs/community/snippets/github/stapcyborg__paradox-kit__verse-snippets.md
# Section:    Verse Snippets Module
`intro_effects_deviceverse.verse`

* ```
  using { /Fortnite.com/Devices }      # Post-Process & Audio Player 両方ともここ
  using { /Verse.org/Simulation }

  intro_effects_device := class(creative_device):

      # 20 秒後に演出トリガ
      @editable
      IntroDelay : float = 22.0

      # 紫色にするポストプロセスデバイス
      @editable
      DayPurple  : post_process_device = post_process_device{}

      # 雷鳴を鳴らすオーディオプレーヤー
      @editable
      ThunderSFX : audio_player_device = audio_player_device{}

      OnBegin<override>()<suspends> : void =
          # ゲーム開始時は念のため両方 OFF
          DayPurple.Disable()
          ThunderSFX.Stop()

          Sleep(IntroDelay)          # 0-20 秒:通常空/無音

Sign in free to read the full source 🌴

This Verse Library file is members-only. Create a free account to view the complete source and download the .verse file.

Sign in with Discord

Comments

    Sign in to vote, comment, or suggest an edit. Sign in