Darren New <dne### [at] sanrrcom> wrote:
> > How do you share a changing object among several other objects?
> You put the image as one field of a structure (in C-speak), and the
> position as another field. When you want to move the sprite, you create
> a new sprite with the same image and a new position. The compiler avoids
> copying the actual image because it knows you can't change it so it's OK
> to share it with other sprites.
What if you want to change the image and want all the sprites using that
image to see the change?
--
- Warp
Post a reply to this message
|