How can i solve this?

Get help using Construct 2

Post » Wed May 14, 2014 9:14 pm

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??? :cry:
B
4
Posts: 29
Reputation: 262

Post » Thu May 15, 2014 5:21 am

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
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,283

Post » Thu May 15, 2014 12:33 pm

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?



Image
Last edited by TheDom on Thu May 15, 2014 12:47 pm, edited 2 times in total.
B
75
S
23
G
3
Posts: 673
Reputation: 9,283

Post » Thu May 15, 2014 12:45 pm

I did it!
Sorry for incomprehension!

Thank you much! :D
B
4
Posts: 29
Reputation: 262

Post » Thu May 15, 2014 12:47 pm

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.
B
75
S
23
G
3
Posts: 673
Reputation: 9,283

Post » Thu May 15, 2014 2:21 pm

No problem i got that anyway :)

Thank you helped a LOT!
B
4
Posts: 29
Reputation: 262


Return to How do I....?

Who is online

Users browsing this forum: 25games, Artcadev and 24 guests