How can i solve this?

0 favourites
  • 6 posts
  • So.

    I have 5 songs. I play it randomly with choose("S1", "S2", etc.)

    Its okay.

    And i have 5 pictures, i want to set:

    If S1 playing

    On touched P1 Go to layout X

    On touched P2 Go to layout Y

    On touched P3 Go to layout Y

    etc.

    My problem is i can't add tag names to the songs... so it doesn't work "If S1 playing" ... because there is no any audio with S1 tag...

    How could i solve this???

  • Create a Global variable with text value called Song then,

    choose("Song1", "Song2", etc.)

    System > Song =1> Audio >Play Music1

    -------------------------> Audio >Stop Music2

    -------------------------> Audio >Stop Music3

    System > Song =2> Audio >Play Music2

    -------------------------> Audio >Stop Music1

    -------------------------> Audio >Stop Music3

    System > Song =2> Audio >Play Music3

    -------------------------> Audio >Stop Music1

    -------------------------> Audio >Stop Music2

    System > Song =1

    On touched P1 > Go to layout X

  • You said in your post: "I have 5 songs. I play it randomly with choose("S1", "S2", etc.)"

    How are you changing or setting tee conditions now?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I did it!

    Sorry for incomprehension!

    Thank you much!

  • I realized how I labeled it was confusing. Added an example.

    I stopped other Music because I don't know what your actually using (what conditions) and if it's triggered or calling choose more than once, the value will change but, more the one music can be playing together.

  • No problem i got that anyway

    Thank you helped a LOT!

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