How do I Handle Audio with a Platformer

0 favourites
  • 4 posts
From the Asset Store
Your futuristic combat with high quality Sound Effects! :D
  • I've been working on a simple platformer for almost 3 weeks now and I'm ready to handle my audio input for the game.

    In my game I have a start screen that plays Audio1.

    After they click Level1, Audio2 plays for the rest of the game until...

    They reach select levels 9-10 then Audio3 plays.

    At the end of the game Audio4 plays.

    If the player chooses to return to the start menu, Audio1 plays again.

    However, with the handling of layouts I don't know if Construct2 is able to handle these conditions.

    On The Start of Layout

    -Layout is Equal To

    --Then Run Condition for Audio Loop

    On The Start of Layout

    -Layout is Equal To

    -Audio is Not Playing

    --Then Run Condition for Audio Loop

    Any help is appreciated!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • on start of layout (add another condition) > system > compare two values > LayoutName = "your_layout_name"

    *** audio > play > select your audio, set it looping, give it a tag (BGM for example)

    on start of layout (add another condition) > system > compare two values > LayoutName = "your_layout_name"

    (add another condition) > audio > is tag playing > "your_tag_name"

    *** audio > play

  • That worked perfectly puntodamar.

    Thank you!

  • you're welcome.

    goodluck with your game!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)