Ive been searching for a couple days on an easy method to NOT loop a music track when entering a new map/zone.
I want a music track or SE to play only once (Ideally a music track so I can use a looping background sound effect also).
All my searches have returned the opposite of what Im looking for.
Im a new Ace user and this seems possible I just dont know the way.
Thanks in advance for ANY assistance, pointers etc.
BGM and BGS loop by default.
If you want something to only play once, don't use a BGM.
Set up a new event on the map, put its trigger as parallel process, and give it two commands:
Play ME
Control Self Switches: A = ON
Then give it a second event page, and the ONLY thing you change on that event page is to set Self Switch A as the condition (above the spot for the graphic).
This means your track needs to be put into the ME folder, not the BGM folder.
couldn't the ogg file be set to have silent moment at the end of the music, and place the playback there, so when the bgm starts to loop, it will be looping on that silent moment?
He doesn't want it to loop at all. And there's no way to tell when a BGM ends and is about to loop.
Simply changing it from BGM to ME will do the trick 🙂
Excellent!
Worked like a charm.
Tyvm Shaz, worked perfectly and is exactly what i was after.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
And reopened at OP's request 🙂
If you want BGM to play every other time, you can make the following changes to the event:
Page 1 -
Play the ME
Wait X Frames (however many it takes for the ME to play, since there's really no way to detect when it ends
Control Self Switch: A = ON
Page 2 (conditioned by self switch A and set to parallel process) -
Play BGM
Erase Event
This will play the ME then play the BGM the first time on this map. Then when you leave the map and return, it'll just play the BGM.
If you don't WANT it to play the BGM following the ME, but only the NEXT time you get to that map, add Erase Event as the final command on page 1.
Thank you Shaz for such a quick response.
(For future users/searches, I asked the closed thread to be re-opened for a follow up question of how do I make the music play only once every time the player enters the map. The original suggestion would play the music once, if the player returned the ME was still flagged so It would not play.)
I will try to implement the new suggstion and report back!
Oh, that's not what I answered. I thought you wanted to play the regular BGM on subsequent visits.
If you want the SAME ME to play every time, just use a single page, and instead of turning on a self switch, use Erase Event.
So, one event with a single page set to parallel process. Two event commands: Play ME, Erase Event.
Sorry for the confusion.
Ok, think I have what I want now.
I went with one event page:
Play ME
Erase Event
This will play my small ME everytime the map is entered which in practice is a bit much.(But exactly what I was asking to do.)
Is there a way to reference this specific event from a different event?
I have seperate planets so Im thinking I should have the music play once when they enter the planet, not everytime they exit a dungeon or bldg.
I think what I need to do is change the event flag only when the player leaves the planet, Is there a way to reference an event flag from a different event?
Yeah, use switches.
Condition the event by a switch. Whenever you want it to play (maybe at the transfer event that takes you into that map in the first place) turn on the switch. Then instead of Erase Event, just turn the switch back off.
So that means it will play as soon as you enter the map from a specific other location, but if you enter a building ON that map and come back out again, it will not play.