Can anyone give me a quick summary of the basic technique used to preload assets for a game (IOS)
I notice if I launch my game and start it immediately, the first time a sound is played, there is a noticeable delay. I therefore assume I should be doing some sort of preloading to ensure my sounds have finished loading before starting the game.
All my sounds so far are short event sounds and I load and play them as follows:
-- Collision Sound
local collisionSoundID = media.newEventSound( "bbHit2.caf" )
local playCollisionSound = function()
media.playEventSound( collisionSoundID )
end
-- Lose Game Sound
local loseGameSoundID = media.newEventSound( "whoosh.caf" )
local playLoseGameSound = function()
media.playEventSound( loseGameSoundID )
end
Any advice on preloading audio (and images too) much appreciated.
Thanks
Paul [import]uid: 7863 topic_id: 2897 reply_id: 302897[/import]