I have some characters that move about, and I have a particle effect working fine in isolation.
Now I want the particles to move with the correct characters, and when the character is deleted so are the particles. I came up with the idea of using an IdNumber to associate the character with the particle set which should work fine.
But could Inheritance be used in some way to automate this process? Some simple code would be appreciated as I'm still getting used to the OOP way of things.
Now I want the particles to move with the correct characters, and when the character is deleted so are the particles. I came up with the idea of using an IdNumber to associate the character with the particle set which should work fine.
But could Inheritance be used in some way to automate this process? Some simple code would be appreciated as I'm still getting used to the OOP way of things.