Here is how Ben gets the thrust audio on the rocket ship to play when you press spacebar and then stop when you’re not pressing spacebar:
I stormed ahead and tried writing this bit before he did, creating my own separate function for handling audio:
Does anyone know if either way is better than the other? I assume later on he’s going to put it into a separate function, but I guess he’ll probably keep the audio.isPlaying check. Mine doesn’t have that, but it doesn’t feel like it needs it. Could I be opening myself up to future bugs by not having that check, or is mine actually just a more direct way of doing this?
Thanks!