Fangames > Game Design

Super Sound Guide for YoSniper's Engine

(1/7) > >>

Sephalos:
Intro
This guide will assume that you are using the YoSniper's Newest Engine or that the engine you are using is similar. Super Sound uses OGG files, so make sure you convert them using Audacity, a free audio editing software.

YoSniper's Newest Engine
Audacity

Step 1.  Installing
Download the Super Sound Extension here https://gmc.yoyogames.com/index.php?showtopic=462692
Make a Music Folder to put in your OGG music files and put the folder in the same location as your Game Maker project.
Open your Game Maker project  and install the extension by going through the ?Resources? tab and clicking ?Select Extension Packages?.


Find and Install the Super Sound Extension Package.


You can also check the help file for more information on the functions you can use with the extension.


Step 2. World Object
Now we need to initialize Super Sound. Go to your ?world? object and go to the ?create event? script and add in the line.
SS_Init();


Initializing Super Sound means we also need to Unload it before the game is closed.
Change the ?Press F4 Event? script to this:
if keyboard_check(vk_alt)  { SS_Unload(); game_end (); }
And for both the ?Press Esc Event? and ?Close Button Event? change the script to this:
SS_Unload(); game_end();

Also, disable 'Let <Esc> end the game' in the Global Game Setting menu.


Step 3. Music Script
In the Scripts Folder find musicFunction.


Then you?ll change each ?case?.
The startRoom case should look like this:
case startRoom:         
if filePlaying != 1 { filePlaying = 1;
if SS_IsHandleValid(bgm) = 1 { SS_FreeSound(bgm); }
bgm = SS_LoadSound('Music/title.ogg',1); SS_PlaySound(bgm); }
break;

Default case should look like this:
default:
if filePlaying != 0 { filePlaying = 0;
if SS_IsHandleValid(bgm) = 1 { SS_FreeSound(bgm); } }
break;

You?ll want to copy paste those as you add more room so for example, your first area would look like this:
case stage1a:           
if filePlaying != 3 { filePlaying = 3;
if SS_IsHandleValid(bgm) = 1 { SS_FreeSound(bgm); }
bgm = SS_LoadSound('Music/stage1a.ogg',1); SS_LoopSound(bgm); }
break;

To choose which music you are playing change ?Music/file.ogg? to something else. Make sure the ?filePlaying? is changed if you are switching to a new music. If you need to change music in the middle of a stage use the same code but make sure it is handled by the world object by doing this:
with(world){ if filePlaying != 5 { filePlaying = 5;
if SS_IsHandleValid(bgm) = 1 { SS_FreeSound(bgm); }
bgm = SS_LoadSound('Music/boss.ogg',1); SS_LoopSound(bgm); } }


I think that?s it, I really hope I didn?t forget anything and I hope this helps. :OneHand:

lemonxreaper:
Interesting, it certainly isn't as confusing as I thought, the real confusion came from the part of yosnipers music script. I would use that engine, but it would just take me too long to make it how I like, and there's a couple of things i'm not keen on.
Still learned a bit about ssound from this. I will have to use it if I get GM pro, since I'm sure that lite doesn't support extensions.

Sephalos:

--- Quote from: lemonxreaper on June 27, 2013, 06:04:32 AM ---Interesting, it certainly isn't as confusing as I thought, the real confusion came from the part of yosnipers music script. I would use that engine, but it would just take me too long to make it how I like, and there's a couple of things i'm not keen on.
Still learned a bit about ssound from this. I will have to use it if I get GM pro, since I'm sure that lite doesn't support extensions.

--- End quote ---
One thing's for sure, I just can't get it to work with Yutuu. I think it has something to do with the way Yutuu Engine Saves and Loads.

lemonxreaper:
Its certainly possible, Kamilia 2 uses both.
I don't exactly need it, but there was some features I thought I could take advantage of.

Sephalos:

--- Quote from: lemonxreaper on June 27, 2013, 06:56:46 AM ---Its certainly possible, Kamilia 2 uses both.
I don't exactly need it, but there was some features I thought I could take advantage of.

--- End quote ---
I'm pretty sure Influka modified the way the game handles saves. Judging by the fact that you can only save one file. But I might look into eventually and try to find a way to make it work.

Navigation

[0] Message Index

[#] Next page

Go to full version