[BUG] [PLAYER] Music resets itself when trapdoor opens and first lem comes out

Started by Wafflem, March 15, 2016, 11:17:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Wafflem

Steps for this bug to occur:
1. Make sure the music is off.
2. Open a level.
3. Press the music on/off hotkey anytime before the trapdoor opens, to turn on the music.
4. Wait until the trapdoor opens and a lemming comes out. The music resets itself as soon as the first lemming comes out.

What should happen instead: if you turn on the music before the first lemming comes out, it should not reset itself when the first lemming enters.
YouTube: www.tinyurl.com/YTWafflem
Twitch: www.twitch.tv/Wafflem467

Have level designer's block right now? Have some of my incomplete levels for LOTS of ideas!

namida

I think I can guess why this is happening, and it should be a simple fix. I'll look at it soon. :)
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

namida

Fixed for next update.

One slight change to your suggestion - at least what I'm getting is, you think the music should start immediately when turned on (even if, had the setting been on from the start, music wouldn't've started yet). Instead of this, I simply made it so that turning on the music option during gameplay will only start the music if the music should've been playing anyway.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)