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
80
S
30
G
8
Posts: 308
Reputation: 10,437

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
92
S
30
G
24
Posts: 3,191
Reputation: 32,584

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
80
S
30
G
8
Posts: 308
Reputation: 10,437

Post » Tue May 22, 2012 1:09 pm

Added to the todo list.
Scirra Founder
B
378
S
219
G
84
Posts: 23,854
Reputation: 187,881

Post » Tue May 22, 2012 5:53 pm

You, good sir, are my hero.
B
80
S
30
G
8
Posts: 308
Reputation: 10,437


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests