When I have a variable that's of value type 'Player', is it possible to get a 'handle' to that player/object and use its tiles in a script?
--Randy
Am 30.10.2005 um 16:33 schrieb Randy Heiland:
When I have a variable that's of value type 'Player', is it possible to get a 'handle' to that player/object and use its tiles in a script?
You have to built the script using the tiles from a concrete player, and later substitute the references to that player in the script with your variable.
- Bert -
Hi Randy --
At 10:57 AM 10/30/2005, Bert Freudenberg wrote:
Am 30.10.2005 um 16:33 schrieb Randy Heiland:
When I have a variable that's of value type 'Player', is it possible to get a 'handle' to that player/object and use its tiles in a script?
You have to built the script using the tiles from a concrete player, and later substitute the references to that player in the script with your variable.
And this is pretty ugly from a UI perspective. This is why we don't really mention it. But it does work. Ted Kaehler has been working on a much better UI for complex expression building with tiles in Tweak.
Cheers,
Alan
- Bert -
Squeakland mailing list Squeakland@squeakland.org http://squeakland.org/mailman/listinfo/squeakland
-----Original Message----- From: squeakland-bounces@squeakland.org [mailto:squeakland- bounces@squeakland.org] On Behalf Of Alan Kay Sent: Monday, October 31, 2005 3:58 AM To: Bert Freudenberg; squeakland.org mailing list Subject: Re: [Squeakland] player variable
Hi Randy --
At 10:57 AM 10/30/2005, Bert Freudenberg wrote:
Am 30.10.2005 um 16:33 schrieb Randy Heiland:
When I have a variable that's of value type 'Player', is it possible to get a 'handle' to that player/object and use its tiles in a script?
You have to built the script using the tiles from a concrete player, and later substitute the references to that player in the script with your variable.
And this is pretty ugly from a UI perspective. This is why we don't really mention it. But it does work. Ted Kaehler has been working on a much better UI for complex expression building with tiles in Tweak.
Cheers,
Alan
- Bert -
Thanks Bert and Alan. Now that you point it out, it sounds familiar and I may have actually done it in the past. You're right, it's not the most elegant, but it does work. I put together a little Halloween treat which makes use of this and posted the project at the bottom of http://sda.iu.edu/K-12/ . This was inspired (perspired?) by Mark's question about driving a car thru waypoints.
And if someone has improvements on this approach, please do share!
--Randy
squeakland@lists.squeakfoundation.org