Search found 2 matches

by jayzzer
Sat Oct 11, 2014 4:28 pm
Forum: Support and Development
Topic: How to play sound one time?
Replies: 2
Views: 2741

Re: How to play sound one time?

You can trigger the play function just once, maybe using a boolean: local sound = love.audio.newSource(filename) local play = true love.update = function(dt) if play then sound:play() play = false end end This will load the sound and create a variable once. Then, every frame, it checks if the varia...
by jayzzer
Sat Oct 11, 2014 3:01 pm
Forum: Support and Development
Topic: How to play sound one time?
Replies: 2
Views: 2741

How to play sound one time?

Hello guys, how to play sound one time(in function love.update)?