We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am trying to create a laser sound effect for my game. Everything works great, except a new instance of the sound won't play until the previous one has finished. I was wondering how to make an ArrayList of sounds, if possible, so the sound will properly play with the creation of each laser.
I am currently using apwidgets as my sound library, and I am going off this example of code: https://code.google.com/p/apwidgets/wiki/APMediaPlayer_example
Answers
shameless self bump
Can you provide the code for what you have so far?
Here is a snippet of code from a larger project.
I think you should create a separate
PMediaPlayer
for eachLaser
. Then you can create it inLaser
's constructor and start looping it, removing the need for anArrayList
ofPMediaPlayer
s... only anArrayList
ofLaser
s.I'm getting an unexpected token error now, at the line indicated, at "new".
If you meant line #22, perhaps you should take a look at this recent post below: <):)
http://forum.processing.org/two/discussion/2239/minim-in-a-new-tab#Item_3