Music Plays Before Scene is Loaded
ADSentertainment
Member Posts: 397
I've noticed that before a scene completely loads up, the background music begins to play. This is a bit of a problem for me as I have some scenes that have objects that go ALONG with the music, and if the music plays BEFORE the scene loads instead of after, it messes it up a bit (a lot). Does anyone know what could possibly be the issue? I think it may have been because my actors don't have preload art set up so some of their behaviors have been loaded (such as playing music) before their graphics and the rest of the scene has been loaded. But I set all of the actors in a scene (just that scene) to preload art, and I still get the same problem. Does anyone know what's causing this?
Having trouble with your game? Sounds like a personal problem.
Best Answer
-
matarua Auckland, New ZealandPosts: 854I also have this issue - it's very apparent on older devices - But it's my launch sequence and the timers and launch all go in time - the scene just does not show it so well at the start. I would say it comes down to what is loaded into memory fastest perhaps?
Code and sounds are small - but graphics are many and sometimes large.
With preload images off - you will get a quicker scene change but may have these issues.
Just an idea Cheers, M@
Answers
Having trouble with your game? Sounds like a personal problem.
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
@ADSentertainment
Hi, another thing to try: assuming you've got your Play Music Behaviour in its own actor, try putting it in one of the graphics actor's rules. Can't guarantee it, but maybe the rule will only kick in after the graphics data has loaded into RAM. Worth a shot...
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Having trouble with your game? Sounds like a personal problem.
Having trouble with your game? Sounds like a personal problem.
Your question to Jon, I'm sure he won't mind me answering: a delay of 0.01 is so short, you'll still have the same problem... count how many seconds it takes for your scene to completely load, then use that as your delay in your Timer...
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Having trouble with your game? Sounds like a personal problem.
True, but better than not giving any delay at all... unless someone else can come up with a watertight solution for you I'm sure it's better than nothing.
A small help with the delay would be to uncheck Moveable for those actors that don't. Another idea, if any of the actors are spawned, try putting the Play Music in one of those...
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Having trouble with your game? Sounds like a personal problem.
Well, this is if a spawned actor is one of the last actors to be put into the RAM... I don't actually know to be honest, just hoping it might be, then it'd solve your problem for you... so perhaps give it a whirl and see what goes...
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Having trouble with your game? Sounds like a personal problem.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Having trouble with your game? Sounds like a personal problem.
OK, sorry I couldn't be more help. Hope your solution now does the trick, or at least improves the situation.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Having trouble with your game? Sounds like a personal problem.
Great news! I got it working. I deleted a bunch of unused images from my game, and now the music is usually fine. I also got rid of about 1/3 of the file size (90 MB to 59.8 MB)
Having trouble with your game? Sounds like a personal problem.
Excellent to hear, @ADSentertainment, I'm pleased for you. Good work, I say. :-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps