Hi!
Can’t figure this out…
Why won’t the sound play when calling the variable?!
[lua]blip = audio.loadSound(“blip.wav”)
– then, later in the code, within a function:
if ( canjump == “play” and event.phase == “began” ) then
print(touched.jsound) – terminal prints “blip”
audio.play(touched.jsound) --will NOT play the sound
audio.play(blip) --THIS plays the sound!
end[/lua] [import]uid: 187595 topic_id: 32322 reply_id: 332322[/import]