In a while, I’m going to release CBEffects Two and One-Half. With this release will come bug squashing, “problem parameter” handling, and more. However, in the course of time, I’ve detected a number of parameters or methods that will have to be changed. These include things that have inconsistent results, odd effects, and that sort of thing. Basically, what I’m saying is change your usage of CBEffects now, so that you don’t have to change it later. Here’s a list of changes that will be there:
relativeToSize:
I’m going to remove this parameter. Start setting it to “false” in your code, so that when it’s removed you won’t need to change anything. I’ve found that the values most affected by this are the gravity values (x and y).
density:
I’m also removing this parameter. Shouldn’t be too much of a problem, as it’s mostly unnoticeable. However, if you are currently using it, change it.
ParticlePhysics Particle Value Access:
For each particle, I’m adding all ParticlePhysics values to a separate table. This means you won’t be able to access particle values like “velX”, “velY”, “xDamping”, and such. Values moved to the separate table:
velX, velY
sizeX, sizeY
xDamping, yDamping
linearDamping, angularDamping
angularVelocity
xbS, ybS, xbL, ybL
rotateToVel
offset
Underscores
I’m adding a lot of underscored ("_") values. You shouldn’t need to access these, I’m just putting them here for anyone who is.
“particle._kill” instead of “particle.kill”
“particle._physicsColor” instead of “particle.physicsColor”
“particle._num” instead of “particle.num” ***DO NOT EDIT ON PAIN OF CRASHES***
DeleteAll
I’ll be removing this; there’s a memory leak that happens when this is used. It might be back when (if?) I fix the leak, but note that it’s return isn’t a sure thing.
That should be it, although if I think of anything else, I’ll add it.
C