How fix this event?
https://www.dropbox.com/s/pvtrfu0cwbmqc ... 6.png?dl=0
Expected result
Every time when arrow jump to nearest meteor audio should play sound
Develop games in your browser. Powerful, performant & highly capable.
You'd have to keep track of which meteor was jumped to last and then play the sound if the value changes. For example, store the UID in a global (LastUID):
if( meteor.UID <> LastUID)
-> set LastUID = meteor.UID
->Play sound