TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
[Stream sound pack] Is there a way to pause/unpause sounds when game is paused?
Pages:
1
[Stream sound pack] Is there a way to pause/unpause sounds when game is paused?
Darkhog
Posts: 1243
April 28, 2011, 07:36:14 pm
I'd like to achieve similar result like Flixel is doing with FlxSounds - pause streamed music when pause is activated and unpause it when game is played again. How to achieve that?
There are no impossible things. There is only lack of skills.
Don't click
this
if your computer has less than 641 kilobytes of RAM.
Stencyl stencyling stencylish stencylers
HNF
Posts: 232
April 29, 2011, 04:34:33 am
That is a problem. You would need a Boolean to determine whether or not the pause is activated.
Stencyl RPG Advancement Foundation
Darkhog
Posts: 1243
April 29, 2011, 04:47:58 am
I think FlxG.pause may be useful. Now how to make it work? I've tried to modify Background music by stream behavior like one in attachment, but it resulted in music playing multiple times at once and hurting my ears.
//edit: Also tried variant without not with the same result.
There are no impossible things. There is only lack of skills.
Don't click
this
if your computer has less than 641 kilobytes of RAM.
Stencyl stencyling stencylish stencylers
Pages:
1