[dirGames-L] oop and sendallsprites
matias kapo
matiaskapo at fastmail.fm
Thu Sep 1 04:28:08 EDT 2005
yes, im attaching the same behaivor to all of the sprites and using the
same parent sprite for all of the sprites too.... i just tried luke idea
without sendallsprites (with sendsprite) and it works fine, the wierd
thing is that it consume a lot of my cpu when i run it on director(as
autor mode)....
here u can see an example: www.racapapu.net/gravluk.htm
particles move randomly in the stage until they get in contact with the
territory of the red squares.... then the instance that animates the
sprite became destroyed.
what do u mean with instance? i mean an object, the son of a parent
script.
matias
On Thu, 1 Sep 2005 08:54:07 +0100, "Danny Kodicek"
<dragon at well-spring.co.uk> said:
>
> > hi! and thanks for the answers, luke i tried your idea... it works fine
> > if i have just one parent script instance(the one that animates the
> > sprite) and a behaivor(the one that calculate the distance). but if i
> > have various sprites in my stage each one with a parent script instance
> > and behaivor it doenst work because my parent script instance is
> > receiving a lot of distance calculation.(the distance of all the
> > sprites).
>
> Well, that's kind of the point of sendAllSprites, isn't it? Send it to
> all
> sprites and all the sprites will get it.
>
> Ah - I think I may understand your point. Are you attaching the *same*
> instance of the script to all the sprites? I think you may be
> misunderstanding what we mean by 'instance'.
>
> Danny
>
>
> _______________________________________________
> dirGames-L mailing list - dirGames-L at nuttybar.drama.uga.edu
> http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames-l
--
matias kapo
matiaskapo at fastmail.fm
--
http://www.fastmail.fm - Same, same, but different
More information about the dirGames-L
mailing list