Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

5
Best way to manage sfx
Post Body

I'm at a point in my game where I'm adding sound effects. My thought is that I don't want the same sound to play everytime an action is done so for example I have 5 "player landing on ground" noises.

Is the best way to do this to load all 5 sounds separately then select a random one, or would it be better to have them all part of the same file and I just jump to a specific time and play for a specific time.

The latter seems more efficient but harder to code while the first seems easy to code but less efficient. Any thoughts on this?

Author
Account Strength
100%
Account Age
8 years
Verified Email
Yes
Verified Flair
No
Total Karma
187,659
Link Karma
8,910
Comment Karma
177,208
Profile updated: 5 days ago
Posts updated: 8 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago