Hey, plinkie.
—
Believe it or not I tried a few things, but I was wondering what the best programmer's method would be as all of mine seem bloated.
For example, I thought I could consistently vary the fire rate for each one of those objects
http://www.darksunpictures.com/public/SAME INSTANCE FIRE DIFFERENTLY.zip
by making them separate objects (just same animation) and then you can give them different fire rates, but you'd have to track spawns via an array to make sure they spawn in a pretty unique sequence. That seems a bit bloated.
You could load up one of those red objects (in capx) with a lot of different fire rate variables and then potentially on spawn set each instance to a unique fire rate? Not sure if that would work, but again seems a bit bloated or not sure if the code would work (I try a lot of different things for hours, but most of them end up not working).
Without that I thought maybe you could set the fire rate value on spawn, but that just changes it for all the ships.
Isn't there a nifty programmer way that would make this easy?
Again, all I'm trying to do is make different instances of the same object fire at consistently different rates I could set.
I believe this is what you suggested initially, different but consistent fire rates for each ship or ship type (not to put you on the spot or anything).
I went back to this because the problem with all the other solutions is an inconsistent fire rate based on how many ships have spawned or been killed etc which becomes a bit problematic.
Plus it becomes boring if all ships of the same type always fire the same, and it looks fake.
So..... is there a programmer's solution to this?