Good morning everybody,
It’s been a while since I started using Corona sdk, and I have some issues so I hope that you can help me…
I’m creating a game and I would like to save the sound progression. To clarify, If a player plays for example, for 60 seconds then loses, next time he will play the game will not load the sound played last time and so on.
( This sound will be played during the game, along with other audio files, like collision sound, game over …)
My questions are :
1- How I’m going to proceed with saving my audio progression?
2- How to stop the background sound when another plays ?
3-How can I play a sound, when my objects passes through out an obstacle.?
4- How can I add sound with a delay, a sound that will play when the player plays for 50 seconds
5-How can I add sound when the ball (the object) touches a specified object ( a tube; some sort of obstacle )
Here is how I added the sound:
local bgSound = audio.loadStream(‘story.wav’)
local explosion = audio.loadSound('explosion.caf)
audio.play(bgSound, {loops = -1, channel = 1}) --when the game starts
function onCollision(e) – called when object collide
audio.play(explosion)
display.remove(ball)
end
I know I’ve posted a lot of questions, feel free to answer what ever question you want & thank you.