[dirGames-L] oop and sendallsprites
Danny Kodicek
dragon at well-spring.co.uk
Thu Sep 1 13:36:44 EDT 2005
>what do u mean with instance? i mean an object, the son of a parent
script.
I'm talking about the difference between this:
tObj=script("parentScript").new()
sprite(1).scriptInstanceList.add(tObj)
sprite(2).scriptInstanceList.add(tObj)
and this:
tObj=script("parentScript").new()
tObj2=script("parentScript").new()
sprite(1).scriptInstanceList.add(tObj)
sprite(2).scriptInstanceList.add(tObj2)
In the first case, the same instance of the script is being added to two
different sprites. In the second, two different instances are being added.
Something in your message suggested you might be doing the former...
Danny
More information about the dirGames-L
mailing list