Problem working on "The Laser Game Tutorial"

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem working on "The Laser Game Tutorial"

Cloz Camong
After I make the modifications as in Section 3 page 97, I cannot see
the arrows while I move on the grid.
When I come to the page before I have the described behavior, i.e. I
have to click on the white area and the arrow is redrawn.
But in none of the steps on page 97 I can obtain an arrow as
described. I can see one randomly if I make the world menu pop up over
the morph, but that's all.
I have reviewed the code and I'm sure its exactly as in the tutorial.
Can it be something related to my configuration, i.e. last Squeak
version on Windows XP home?
Is there any way to force the redraw?

Thanks in advance for any suggestion.

Regards
Camong
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Problem working on "The Laser Game Tutorial"

Herbert König
Hi,


don't know about the tutorial, it worked when I did it but I'm sure
it's been modified since
CC> Is there any way to force the redraw?

World Menu, restore display

Cheers,

Herbert  

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Problem working on "The Laser Game Tutorial"

Cloz Camong
> World Menu, restore display
Ops, yes I forgot to mention...I meant to force the redraw of the
morph by code (this is the first attempt in Smalltalk and Morph for
me).
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re[2]: Problem working on "The Laser Game Tutorial"

Herbert König
Hello,

CC> Ops, yes I forgot to mention...I meant to force the redraw of the
CC> morph by code (this is the first attempt in Smalltalk and Morph for
CC> me).

usually a Morph redraws when it gets a #changed message or one of its
derivatives (changed: )

There are ways to force a redraw if the computer is too busy to redraw
any Morph (not the case in the tutorial unless you have a *very* slow
computer).

Cheers,

Herbert  

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Re[2]: Problem working on "The Laser Game Tutorial"

Cloz Camong
> usually a Morph redraws when it gets a #changed message or one of its
> derivatives (changed: )
This worked. I've added a "self changed" at the end of
"mouseMoveWhileButtonUp:" of LaserGame object.
Thanks for the suggestion
Regards
Camong
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners