Audio Object Suggestion

Discussion and feedback on Construct 2

Post » Mon May 21, 2012 3:22 pm

I was wondering if it would be possible to add a "preload by name" action to the Audio object, similar to the "play by name" action?

I like streamlining events.
B
58
S
20
G
7
Posts: 305
Reputation: 8,804

Post » Mon May 21, 2012 9:47 pm

Don't see where this would be useful :P
But whatever floats your boat I suppose...
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Tue May 22, 2012 3:46 am

So the way I play music in my game:

On Start of Layout
     -> Play Music by name: "mus_" & StageName & "_intro" with tag "intro"

Audio: On "intro" end
     -> Play Music by name: "mus_" & StageName with tag "music"

In order to reduce the pause I'd like to do an event before the level change where I can preload the regular music file before entering the stage.

On Down Arrow Key pressed
Player overlapping StageDoor
     --> Preload by name: "mus_" & StageName

On Preload Finished
     --> Go to Layout by name: StageName

That way I don't have to copy and paste for every single level, preload only when I need them, and it makes adding more levels easier, too.TL222012-05-22 03:47:11
B
58
S
20
G
7
Posts: 305
Reputation: 8,804

Post » Tue May 22, 2012 1:09 pm

Added to the todo list.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Tue May 22, 2012 5:53 pm

You, good sir, are my hero.
B
58
S
20
G
7
Posts: 305
Reputation: 8,804


Return to Construct 2 General

Who is online

Users browsing this forum: Artpunk and 13 guests