Stopping music

Get help using Construct 2

Post » Tue Jun 26, 2012 9:48 pm

I have it so that when the player reaches 0 lives, they go to a gameover layout. For this I have the condition as

Lives = 0
          Reset Global Variables to 0
          Stop "gametrack"
          Go to Gameover

For starting the music I have

On start of layout
          Play "gametrack" looping from Music (tag "")

Is there anything here that prevents it from stopping or should I do it another way?
B
8
S
3
G
2
Posts: 22
Reputation: 2,028

Post » Tue Jun 26, 2012 9:55 pm

You'd need to set the tag to "gametrack".
Audio: Stop "gametrack" refers to the tag name not the filename.
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,000

Post » Tue Jun 26, 2012 9:57 pm

OH! Thanks so much :D Silly me didnt notice the obvious "tag" right beside the input.

EDIT: Now my audio isnt even playing on the layout and all my audio files are appearing as folders 0.0bloop2342012-06-26 22:00:59
B
8
S
3
G
2
Posts: 22
Reputation: 2,028

Post » Tue Jun 26, 2012 10:44 pm

I get that with the audio files showing as folders. I think it's just a visual bug.
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,000

Post » Wed Jun 27, 2012 5:24 am

But it isnt even playing the music anymore. If I delete it then reimport it, it works but once I close the project and reopen I cant hear it again.bloop2342012-06-27 05:24:52
B
8
S
3
G
2
Posts: 22
Reputation: 2,028


Return to How do I....?

Who is online

Users browsing this forum: Artpunk, Axiomaltd, nicklowkcmagic, OddConfection and 21 guests