Re: [Newbies] The bouncing sound

2008-02-21 Thread polishookm

Hi Scott,

Thanks for your detailed answer which among other things shows that the 
beginners list is A friendly place to get answers to even the most 
basic questions about Squeak.


I'll take a look at the next Squeakland image (and the current one as 
well) as you suggest. In the class I'm teaching, I'm working to present 
tile scripting and text coding as two sides of the same coin. So I'm not 
sure if we'll switch or not but I'm going to be taking a very close look 
at all that you mention in that image.


Thanks again for your help,

Mark

Scott Wallace wrote:

Hi, Mark,

What you're hearing is not a sound associated with the bounce but 
rather a sound associated with an object hitting the fence.


The fence is a feature that makes a forward command which would 
take an object beyond the edge of its container result in the the 
object's jiggling back into the field of view, accompanied by a 
special fence sound.  The intent is to reduce the incidence of 
runaways when beginners write scripts using forward which rapidly 
take an object beyond an edge of its container, thus making it disappear.


When using bounce, it's advisable to *disable* the fence, because 
the interactions between the logic of the two features can produce 
confusing results.


Use the world's playfield options menu to disable the fence.

However, without the fence, in your student's example, there seem to 
be situations in which the the paddle overshoots the boundary and 
disappears.  I think you could eliminate these situations by slightly 
reducing the factor used in the paddle's script1.


In the olpc/etoys image, there's an added preference that suppresses 
the fence *sound*, thus allowing the fence feature to be used to keep 
an object within its container's bounds but without the annoyance of 
hearing the fence sound.  But this is not in 3.9.


These two features -- a container's fence feature and the ability 
for a moving object to request bounce -- have always, unhappily, 
been somewhat in conflict.  For the next system we expect to have a 
much more harmonious and consistent and understandable way of offering 
such things.


BTW, unless you have a compelling reason to be using 3.9, and 
particularly if tile-scripting is the main focus of your class I 
suggest that you have your students use a Squeakland image rather than 
a 3.9 or 3.10, simply because extensive enhancements, fixes, and 
documentation for tile-scripting (etoys) are available in the 
Squeakland images.  But if you do decide to switch, it's probably best 
to wait a short while until the new Squeakland image gets released.  
This will be based on the OLPC-etoys image, which is the system in 
which all the advances in etoys have been made over the past 18 months 
-- hundreds of bug-fixes, feature-enhancements, performance 
improvement, example projects, tutorials, and other documentation, 
plus a large user community.


Cheers,

  -- Scott


On Feb 20, 2008, at 8:29 PM, polishookm wrote:


Scott,

Here's a project file that demonstrates the problem. I'm working in 
the most recent ver. of Squeak from www.squeak.org (just downloaded a 
few days ago)  3.9-final-7067


When I activate the script with the object controlled by a joystick, 
the first few times it hits the top of the world and it's silent - 
all is well. But at some point, after 3 or 4 or 5 collisions, it's no 
longer silent.


All help much appreciated and thanks very much in advance for looking 
at the project (made by a student in the class I'm teaching).


Ab,

Mark



Scott Wallace wrote:

Hi, polishookm,

I cannot reproduce the phenomenon you describe in any image I have 
close to hand -- not in Squeak 3.9, not in Squeakland3.8-05, and not 
in the OLPC etoys image.   (Can anyone else?)


What version of Squeak are you using?  If it's 3.10, I'll leave it 
for other 3.10 users to track this down, since I don't have a copy 
of 3.10 handy.


Otherwise, perhaps you could email me a copy of a project of yours 
which exhibits this symptom...



Cheers,

-- Scott



On Feb 20, 2008, at 6:38 PM, polishookm wrote:


Im finding that with

[Rectangle forward by 5]
[Rectangle bounce silence]

the rectangle eventually collides with the top of the world and 
bounces off in the opposite direction - with no sound ... the 
bounce is silent.


However, this script

[Rectangle forward by JoyStick's upDown * 8]
[Rectangle bounce silence]

doesn't allow the Rectangle bounce silently off the edge of the 
world. In this case, when the rectangle  reaches the top of the 
world, it makes a bouncing sound. The exact sound can be selected 
in the [Rectangle bounce silence] tile. But selecting 'silence' as 
the sound doesn't seem to work.


Am I missing something obvious? Shouldn't it be possible to silence 
the bounce?



___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners




--
Mark Polishook, 

Re[2]: [Newbies] The bouncing sound

2008-02-21 Thread Herbert König
Hello Mark,


p Here's a project file that demonstrates the problem. I'm working in the
p most recent ver. of Squeak from www.squeak.org (just downloaded a few
p days ago)  3.9-final-7067

I'm confused by the fact, that the reaction of the paddle to the
joystick reverses after it has bounced.

It even starts reverse when I drag the project onto a fresh 3.9 final.

No experience with etoys but curious.

Cheers,

Herbertmailto:[EMAIL PROTECTED]

___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] The bouncing sound

2008-02-21 Thread polishookm

Hi Herbert,

Thanks for trying the project. It's a first attempt (by a student) to 
connect behavior of two objects in this case, a paddle and a joystick 
mechanism. Like all first attempts, it will likely morph and correct and 
revise and clarify itself into something else as the student acquires 
more familiarity with tile scripting.


Ab,

Mark



I'm confused by the fact, that the reaction of the paddle to the
joystick reverses after it has bounced.

It even starts reverse when I drag the project onto a fresh 3.9 final.

No experience with etoys but curious.

Cheers,

Herbertmailto:[EMAIL PROTECTED]

___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners
  


--
Mark Polishook, D.M.A.
Technology Coordinator
Morehead Hall, Rm 132
Center for Academic Advising and Adult Learning
Montclair State University
Montclair, NJ 07043

(973)-655-7114
http://www.montclair.edu/AcademicAdvising/html
[EMAIL PROTECTED]

___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


[Newbies] Re: ordinary #hash and Dictionary [was: Recap: How to empty a collection]

2008-02-21 Thread nicolas cellier

Klaus D. Witzel a écrit :


Wouldn't this deserve a longer (Dictionary comment) ?


You're right, the invariant is *essential* for Set and its subclasses, 
alas no word about it in its class comment. Please open a bug report 
(with severity text); current policy is that this then gets included 
in the next release.




Feel free to correct or complete http://bugs.squeak.org/view.php?id=6942

Maybe a reminder 'See also Set comment in Dictionary comment' would be 
welcome.


Cheers

Nicolas

___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


[Newbies] Re: ordinary #hash and Dictionary [was: Recap: How to empty a collection]

2008-02-21 Thread Klaus D. Witzel

On Thu, 21 Feb 2008 21:44:05 +0100, nicolas cellier wrote:


Klaus D. Witzel a écrit :


Wouldn't this deserve a longer (Dictionary comment) ?
 You're right, the invariant is *essential* for Set and its subclasses,  
alas no word about it in its class comment. Please open a bug report  
(with severity text); current policy is that this then gets included  
in the next release.




Feel free to correct or complete http://bugs.squeak.org/view.php?id=6942


Done, added the ANSI wording :)



Maybe a reminder 'See also Set comment in Dictionary comment' would be  
welcome.


Sure.


Cheers

Nicolas



___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners