I noticed how World.ini actually takes in the names of the sound effects for shifts (ShiftSound(A)=Electronic rather than something like ShiftSound(A)=2), and in wishful thinking I hoped that this was a sign that Knytt Stories implemented a way to have custom shift sounds.
So I took two files named CuicaMute.ogg and CuicaOpen.ogg and tried many things. I tried putting them in the root of the level's folder. I tried making a subfolder for them like with the other custom media folders (I tried several appropriate-sounding names, like Sounds, Sound Effects, and SFX). I tried adding sections to the ini like this:
[Sound Effects]
CuicaMute=CuicaMute.ogg
CuicaOpen=CuicaOpen.ogg
or like this:
[CuicaMute]
File=CuicaMute.ogg
And in all cases, I made a point to try each of the following lines:ShiftSound(A)=CuicaMute
ShiftSound(A)=CuicaMute.ogg
All of this was to no avail. Nothing I tried got my sound effect to successfully play during the shift.
Does anybody know if it's possible to set up a custom sound effect for a shift? It looks like there's a system in place, but one thing is for sure: If there is one, it's really hidden!
@Exp HP: Use warps. They're a lot simpler than shifts and don't jump.
XA = X coordinate where the shift should go to
YA = Y coordinate where the shift should go to
[XB, YB] = Identical to [XA, YA], but somewhere else (this is where the shift leads)
[x(XB)y(YB)]
WarpX(U)=XA-XB
WarpY(U)=YA-YB
WarpX(L)=XA-XB
WarpY(L)=YA-YB
WarpX(R)=XA-XB
WarpY(R)=YA-YB
WarpX(D)=XA-XB
WarpY(D)=YA-YB
Simple, no?
(tells PP to look at the bottom of my second post)
Ah. Missed that. I still don't see why warps wouldn't work, though.
Exactly. They do work. I am using them. :P2
Here's a diagram of the solution I'm using.
(http://imgur.com/Se4MQ.png)
(LEFT and RIGHT are the two variants of the room in question. One is open only to the left (top, bottom, & right sides are blocked off), the other is only open to the right (top, bottom, & left sides are blocked off). Shifts are used to travel between these two variants. These are the shifts that I am giving the custom sound effects to.
There are two almost-identical copies of each variant, one with the sound effect (set as its Music) and one without the sound effect.
The ones without the sound effects are physically connected to the rest of the level. Thus, no sound effect plays when you walk into the room.
All shifts point to the ones with sound, so sound effects play when you shift.
The ones with the sound effects use warps to connect to the rest of the level.)