Amanita Design forum

Samorost => Samorost 1 and Samorost 2 => Topic started by: crazyoval on January 30, 2008, 09:40:42 am



Title: loading Samorost
Post by: crazyoval on January 30, 2008, 09:40:42 am
Hi guys, can anyone tell me how Samorost loads each level. Is it separate scenes or separate swf's that are being loaded into a root swf? Im interested because it spreads out the load of a big file into incremental loads which is very useful when you've got a lot of art and audio to download.

Thank you  :D


Title: Re: loading Samorost
Post by: dg10050 on January 30, 2008, 10:18:58 pm
The different levels are actually seperate .swf files, and they're loaded as needed.


Title: Re: loading Samorost
Post by: crazyoval on January 31, 2008, 03:36:29 pm
cool,thanks,  that makes a lot of sense. But how can you control all sound from outside an swf? some are sound effects so they are linked to an action whilst others are music score which could sit in the mail swf and be controlled. Not sure how you would control all sounds .. any idea?


Title: Re: loading Samorost
Post by: dg10050 on January 31, 2008, 11:17:29 pm
Eh, like most .swf's, I'd imagine they could be disassembled and the sounds could be extracted. Not sure Amanita Design would like you doing this though.


Title: Re: loading Samorost
Post by: crazyoval on February 02, 2008, 11:06:02 am
no you misunderstand. Im not interested in extracting anything from Samorost. Im interested in how you control sound from two swfs, the main loader swf which has the music and plays continually and whilst each level's swf is loaded, plus each level swf which seems to have the sound effects (as in, it must hold the sound effects to be synced to the animation).

Im wondering if anyone knows how to control sound from two separate swfs with the same volume controller. Ive only known sound to be controlled when it loads up into a separate movie clip that then has code on it to control the sound volume, but that wont cover both sources of sound you see.


Title: Re: loading Samorost
Post by: dg10050 on February 02, 2008, 01:07:04 pm
Actually, each individual swf holds the music for its level. You can play an individual swf to play only the level that it contains.


Title: Re: loading Samorost
Post by: crazyoval on February 02, 2008, 04:25:28 pm
yes, its clever IMO how the sound for both the level swf and the holding swf are controlled by the same volume controller. wish I knew how to do that.


Title: Re: loading Samorost
Post by: dg10050 on February 02, 2008, 08:09:34 pm
There is no "holding" swf. Each level is in its own independent swf file. When a level is finished, it just runs the next swf. The files run completely independently of each other.


Title: Re: loading Samorost
Post by: crazyoval on February 05, 2008, 03:28:26 pm
how do you control two sound sources then? from the main swf and the level swf? an interesting challenge. I think I will see if the newgrounds forum can answer this