• Hi Guest!

    We have posted a new VaM2 dev log on Patreon, starting a monthly cadence of written progress updates between Beta releases. Highlights include the new Gizmos System, Selection Carousel, and Modes System with Context-Specific Editing. Beta1.2 is 15 of 21 items complete.

    Read the full post on Patreon, or follow progress on the public Trello roadmap.

Solved Auto play Audio on scene load

ChampionWhisky

New member
Joined
May 29, 2022
Messages
17
Reactions
4
So im creating a scene where i want the audio ive chosen to immediately start playing and loop the moment the scene loads in.
i can do it with triggers and usually i would but this time i just want it on from the start with no extra steps.

Any ideas?
 
There's literally a logic brick called EventSceneLoad in MacGruber's logic bricks. It does whatever you trigger once the scene has loaded.
 
Upvote 0
Solution
i can do it with triggers and usually i would but this time i just want it on from the start with no extra steps.

What is "no extra step"? Triggering something without needing to trigger it? :p
That not possible haha.

There are several ways to start something when a scene starts:
  • Scene Animation actions and triggers (have the scene animation at least 1sec long and add a set of actions).
  • As Slimer said, Logic Bricks
  • Or VAMStory Director
 
Upvote 0
There's literally a logic brick called EventSceneLoad in MacGruber's logic bricks. It does whatever you trigger once the scene has loaded.
You absolute beauty. its worked perfectly.

in case anyone wants to repeat this, this is how i did it.
load audio into scene audio
add audio source from atom menu
add Macgruber.eventaudioqueueEmpty to plugins
Actions on trigger
settings are then as follows
AudioSource,AudioSource,PlayNow,URL,Web, (chosen music)
added a loop in there too
 
Upvote 0
What is "no extra step"? Triggering something without needing to trigger it? :p
That not possible haha.

There are several ways to start something when a scene starts:
  • Scene Animation actions and triggers (have the scene animation at least 1sec long and add a set of actions).
  • As Slimer said, Logic Bricks
  • Or VAMStory Director
The idea was that loading the scene was the "trigger" of sorts. i didnt want to populate my scene with too many buttons. Already have 20 for the animations and i didnt want it to get too cluttered
 
Upvote 0
The AudioSource not having like an "automated" startup, you have no choice to start it yourself.

Now if what you meant by "trigger" was "button", indeed you can do that without a button. You will have to rely on one of the suggestions above.
 
Upvote 0
The AudioSource not having like an "automated" startup, you have no choice to start it yourself.

Now if what you meant by "trigger" was "button", indeed you can do that without a button. You will have to rely on one of the suggestions above.
What SlimerJspud said was spot on and works great
 
Upvote 0
Back
Top Bottom