Volume

Hi there,
In the settings I've got it so that one can set the volume louder and softer.
However it just never seems to set the volume to 0. I know I'm doing something wrong, but I'm not sure what.
This is the code for a mouse up click event:
The volume starts at 1. So eventually it should get to 0, but it doesn't. Is musicvol being rounded down maybe? Eh, I don't know.
Thanks for the help.
In the settings I've got it so that one can set the volume louder and softer.
However it just never seems to set the volume to 0. I know I'm doing something wrong, but I'm not sure what.
This is the code for a mouse up click event:
- Code: Select all
if (musicvol != 0)
{
musicvol -= 0.2;
}
The volume starts at 1. So eventually it should get to 0, but it doesn't. Is musicvol being rounded down maybe? Eh, I don't know.
Thanks for the help.