Sound player bug
Softboy
Member, PRO Posts: 43
Nobody seems to be able to fix this random error.
I have made a vinyl LP player that plays sound files. When you draw the mouse into the vinyl player the record and sound slows down and it sounds real.
The only problem is that I cant seem to fix a player that can switch between the songs. I have made a NEXT and a PREVIOUS button and I can make it switch songs to certain degree. I have 3 songs that plays when an integer is 0, 1 and 2. If I switch songs in this order 0,1,2,1,0 they all play but when I go from 0 to 1 the second time the sound file wont play. Then when I go from 1 to 2 again then sound file at integer value 2 plays fine again. Then it works fine until I am back at 0 where the sound file at integer value 1 wont play when the value is changed. Its doesn't make any sense...
Here is my programming in Gamesalad:
NEXT BUTTON:
RULE:
// game.record < 2
Actor receives events when touch is pressed.
CHANGE ATTIBUTE: game.record TO: game.record + 1 //
PREVIOUS BUTTON:
// game.record > 0
Actor receives events when touch is pressed.
CHANGE ATTIBUTE: game.record TO: game.record - 1 //
PLAY SOUND RULE:
When game.record = 0
Play SOUND 1 - Loop X
When game.record = 1
Play SOUND 2 - Loop X
When game.record = 2
Play SOUND 3 - Loop X
Anybody who can help me?
Best Regards
SoftBoy
I have made a vinyl LP player that plays sound files. When you draw the mouse into the vinyl player the record and sound slows down and it sounds real.
The only problem is that I cant seem to fix a player that can switch between the songs. I have made a NEXT and a PREVIOUS button and I can make it switch songs to certain degree. I have 3 songs that plays when an integer is 0, 1 and 2. If I switch songs in this order 0,1,2,1,0 they all play but when I go from 0 to 1 the second time the sound file wont play. Then when I go from 1 to 2 again then sound file at integer value 2 plays fine again. Then it works fine until I am back at 0 where the sound file at integer value 1 wont play when the value is changed. Its doesn't make any sense...
Here is my programming in Gamesalad:
NEXT BUTTON:
RULE:
// game.record < 2
Actor receives events when touch is pressed.
CHANGE ATTIBUTE: game.record TO: game.record + 1 //
PREVIOUS BUTTON:
// game.record > 0
Actor receives events when touch is pressed.
CHANGE ATTIBUTE: game.record TO: game.record - 1 //
PLAY SOUND RULE:
When game.record = 0
Play SOUND 1 - Loop X
When game.record = 1
Play SOUND 2 - Loop X
When game.record = 2
Play SOUND 3 - Loop X
Anybody who can help me?
Best Regards
SoftBoy