best practice share data?
what is best way share data from sprite, other spritie?
example, say i have sprite which is player, sprite which is enemy, and i want player shoot bullet, how i share bullet collection?
what about bullet collision ?where code i calculate bullet collision? i should do in enemy sprite ?player sprite ?or state?
Collisions are usually done in the state, where you'd have groups for the bullets. With the quadtree algorithm Flixel uses, doing collisions in groups (as opposed to doing it individually) is faster.