Hey lets say you load a texture into an image..can you add the image as a child to more than one sprite?
Ok I just realized the correct way would probably be to load a texture then that texture can be added as a child to more than one image.
image with more than one parent?
(4 posts) (2 voices)-
Posted 2 years ago #
-
You already described the correct way =)
A display object cannot be added to multiple parents. It must have exactly one parent. (If you add it to another parent, it will automatically be removed from the old parent.)
So the correct way to handle this is to load the texture once and create different SPImages that all use the same texture.
Daniel
Posted 2 years ago # -
Yeah it works beautifully!
I think I'll be releasing an actual game soon! :)..Could I use the egg logo in the credits? It looks cool!
Also would it be ok to put the link to the sparrow home page in the credits? More people should know about this great library
MikePosted 2 years ago # -
Wow, Mike, that's great news!!! I'll keep my fingers crossed for your game =)
That's really the best compliment you can make us!Of course, you can use the egg logo! You would really do us a favor!
If you need the image in any special format, just write me.Daniel
Posted 2 years ago #
Reply
You must log in to post.