Hello,
I cannot get an expected result with the "overlaps" tile to make overlaps test.
I can get it work with one instance of a player 'krill', let's say:
'fish overlaps krill'
however this test does not work with a clone of krill.
I was expecting that the overlaps method was working at a class level and not at an instance level. Or maybe there is something I have not understand.
Concening the toucheA I did not succeed to use it in test condition.
Is there any coin
Am 06.10.2004 um 14:55 schrieb Hilaire Fernandes:
Hello,
I cannot get an expected result with the "overlaps" tile to make overlaps test.
I can get it work with one instance of a player 'krill', let's say:
'fish overlaps krill'
however this test does not work with a clone of krill.
I was expecting that the overlaps method was working at a class level and not at an instance level. Or maybe there is something I have not understand.
The "overlaps" test only checks for collision with exactly the given object.
Concening the toucheA I did not succeed to use it in test condition.
Works for me. The touchesA tile should do exactly what you want, the test succeeds for any copy of a given sketch. See attached project.
- Bert -
Can you post a sample project exhibiting the behavior to the SuperSwiki?
http://squeakland.org:8080/super/
If so, I'll take a look at it.
Cheers, Darius
Hello, Hilaire,
Sorry to disappoint, but "Fish overlaps krill" tests only whether one specific object, the Fish, overlaps another specific object, the specific krill mentioned.
We still have a strong need for features that allow the kind of "group-checking" that you were hoping "overlaps" would provide.
The functionality you propose could perhaps be embodied in a new kind of test tile called something like "overlaps any" -- thus,
Fish overlaps any krill
would be true if the Fish overlapped the explicit object mentioned, krill, *or* any of its siblings.
That sounds like a feature worth adding ;-)
Cheers,
-- Scott
PS: Regarding the little-known "touchesA" -- this does indeed operate on a group basis, but not by class, as you perhaps might have expected, but rather the group is defined to be all "sketchMorphs" (principally, these are drawings made with the Squeak painting system) whose graphic (independent of any rotations) is identical to the one mentioned after the touchesA tile. This is a feature put in a long time ago, I think, in support of one particular demo that it enabled, but it's not in widespread use, and arguably we need something better. Perhaps the addition of an "overlaps any" would be a reasonable start.
If you're into looking at the source code, take a look at the comment in method touchesA: in class Player for more details about this unusual tile ;-)
At 2:55 PM +0200 10/6/04, Hilaire Fernandes wrote:
Hello,
I cannot get an expected result with the "overlaps" tile to make overlaps test.
I can get it work with one instance of a player 'krill', let's say:
'fish overlaps krill'
however this test does not work with a clone of krill.
I was expecting that the overlaps method was working at a class level and not at an instance level. Or maybe there is something I have not understand.
Concening the toucheA I did not succeed to use it in test condition.
Is there any coin
-- CDDP des Landes Ingénierie Éducative 614, rue du Ruisseau - BP 401 40012 Mont de Marsan Cedex Tél. 05.58.75.50.10 http://crdp.ac-bordeaux.fr/cddp40
Very interesting. As Scott knows, I, too, wanted to use the overlaps tile to respond to an object and all its siblings. Is this the beginning of a movement?
Phil
On Oct 8, 2004, at 3:57 AM, Scott Wallace wrote:
Hello, Hilaire,
Sorry to disappoint, but "Fish overlaps krill" tests only whether one specific object, the Fish, overlaps another specific object, the specific krill mentioned.
We still have a strong need for features that allow the kind of "group-checking" that you were hoping "overlaps" would provide.
The functionality you propose could perhaps be embodied in a new kind of test tile called something like "overlaps any" -- thus,
Fish overlaps any krill
would be true if the Fish overlapped the explicit object mentioned, krill, *or* any of its siblings.
That sounds like a feature worth adding ;-)
Cheers,
-- Scott
PS: Regarding the little-known "touchesA" -- this does indeed operate on a group basis, but not by class, as you perhaps might have expected, but rather the group is defined to be all "sketchMorphs" (principally, these are drawings made with the Squeak painting system) whose graphic (independent of any rotations) is identical to the one mentioned after the touchesA tile. This is a feature put in a long time ago, I think, in support of one particular demo that it enabled, but it's not in widespread use, and arguably we need something better. Perhaps the addition of an "overlaps any" would be a reasonable start.
If you're into looking at the source code, take a look at the comment in method touchesA: in class Player for more details about this unusual tile ;-)
At 2:55 PM +0200 10/6/04, Hilaire Fernandes wrote:
Hello,
I cannot get an expected result with the "overlaps" tile to make overlaps test.
I can get it work with one instance of a player 'krill', let's say:
'fish overlaps krill'
however this test does not work with a clone of krill.
I was expecting that the overlaps method was working at a class level and not at an instance level. Or maybe there is something I have not understand.
Concening the toucheA I did not succeed to use it in test condition.
Is there any coin
-- CDDP des Landes Ingénierie Éducative 614, rue du Ruisseau - BP 401 40012 Mont de Marsan Cedex Tél. 05.58.75.50.10 http://crdp.ac-bordeaux.fr/cddp40
Squeakland mailing list Squeakland@squeakland.org http://squeakland.org/mailman/listinfo/squeakland
Le mer 06/10/2004 à 14:55, Hilaire Fernandes a écrit :
Hello,
I cannot get an expected result with the "overlaps" tile to make overlaps test.
In the mean time I am using the color test.
While objects are cloned to simulate a dynamic system (around hundreds of objects with their own scripts), I found the whole system becomes very sloow.
I can sent the project privately (not publicly because it is the solution for a contest) if someone can see how to optimize it.
Hilaire
squeakland@lists.squeakfoundation.org