making more instances of objects in scripting
Bob Arning
arning at charm.net
Mon Dec 25 17:41:25 UTC 2000
On Mon, 25 Dec 2000 17:48:11 +0100 Karl Ramberg <karl.ramberg at chello.se> wrote:
>I'm trying to make a SpaceWar game a la the one
>Alan Kay describes in How Spacewar on Bobs SuperSwiki.
>I'm doing this with morphic scripting tiles and wonder
>how to make bullets. I would like to make one bullet
>and every time one is fired the original bullet will
>copy it self and the copy will shoot off.
>But I can't find a way to make a copy instance of a
>bullet...
>Any suggestions ?
Karl,
Try editing a script textually and changint the text to
script1 "<<---or whatever number it gives you"
self costume owner addMorph: self costume usableSiblingInstance
Cheers,
Bob
More information about the Squeak-dev
mailing list
|