T
Traddles000
hi, I have a fairly decent understanding of java applets. I know how
to put images in the applet, move them around a bit, etc. My problem
is, I'm trying to create an effect so that basically when I call some
method makeBang(x, y, image) it will create 2 to 6 random images, which
will start moving away from the source x,y with random speed and random
direction from the source. Now, I got some code to work that kind of
did this, but it was absurdly messy and ended up slowing up my whole
system, I know there's a better way. Now to make things even more
complicated, I need those images to start to fade after they've been
moving away from x,y for a second or two and return once the last image
has completly faded. AND I need this method that does this to run
seperatly from the main program such that the code that calls
makeBang() can continue doing stuff, (namely calling makeBang() several
other times with different values) seperatly while all this image
movement is being done.
somehow I have a feeling I'm going to get a really complicated answer,
but if anyone is willing to explain to me how to do this I'm all about
learning new stuff
to put images in the applet, move them around a bit, etc. My problem
is, I'm trying to create an effect so that basically when I call some
method makeBang(x, y, image) it will create 2 to 6 random images, which
will start moving away from the source x,y with random speed and random
direction from the source. Now, I got some code to work that kind of
did this, but it was absurdly messy and ended up slowing up my whole
system, I know there's a better way. Now to make things even more
complicated, I need those images to start to fade after they've been
moving away from x,y for a second or two and return once the last image
has completly faded. AND I need this method that does this to run
seperatly from the main program such that the code that calls
makeBang() can continue doing stuff, (namely calling makeBang() several
other times with different values) seperatly while all this image
movement is being done.
somehow I have a feeling I'm going to get a really complicated answer,
but if anyone is willing to explain to me how to do this I'm all about
learning new stuff