Problem with music

For questions about using Classic.

Post » Mon Nov 14, 2011 8:02 pm

Everything works well, music is playing (it's "on start of layout: play "music" with loop"), but when I die and game loads save file and player goes to the checkpoint music stops. How to avoid that? Thanks in advice.
B
11
S
3
G
6
Posts: 193
Reputation: 4,234

Post » Mon Nov 14, 2011 8:14 pm

Maybe because if you loading your savegame, the layout already started.
Maybe putting "play music" also into "load" command at the end? (sorry for my english^^)
edit: or does it help to set the "play music" command not to "start of layout", but to "on load"?zyblade2011-11-14 20:19:17
B
24
S
9
G
2
Posts: 294
Reputation: 3,160

Post » Tue Nov 15, 2011 12:41 am

If the layout isn't restarting, the music should just keep on playing. If it is restarted it should start playing from the beginning.
"on load" will only be triggered if the game state is loaded with the system action "save/load to disk" (which may of course be the case here)

I would assume some events interrupting the music playing, but it is hard to tell without looking at the events.
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Tue Nov 15, 2011 5:29 am

Solved the problem, just added "on load: play "music" :)
B
11
S
3
G
6
Posts: 193
Reputation: 4,234

Post » Tue Nov 15, 2011 5:34 am

Hurray :D

If only it would be that simple all the time :)
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests