"No Tipping" puzzle

Karl Ramberg karl.ramberg at chello.se
Mon May 14 12:23:35 UTC 2001


Ohshima, Yoshiki wrote:
> 
>   Thank you, Karl,
> 
> > Thanks for a cool pussle:-)
> > I had a little problem with the Start over button: it
> > uses fixed positions and you probably made this game in
> > a lower screen resolution than I run (1024 at 768)
> > I changed it to use the Bar top instead and it resets the
> > weights fine.
> 
>   I made the puzzle in 1024 at 768, but I just wanted to make
> it run on (at least) 800 at 600.
> 
>   I don't quite understand your change.  You change what to
> use the Bar top for what?  You have changed the length of
> the bar or the position of the bar?

The Start Over button evokes the Worlds script3. In scrip3
you defined the position of the weights:
weight1 y: yyy 
weight1 x: xxx
What happened to me was that the weights would be aligned
about 100 pixles below the bar.
So I changed the the script to 
weigth y: Bars top + 6
weigth x: xxx

Karl





More information about the Squeak-dev mailing list