Interactive Story (Newbie Question)

Ned Konz ned at bike-nomad.com
Mon Jul 21 16:48:23 UTC 2003


On Monday 21 July 2003 09:03 am, Jack Johnson wrote:

> Is there a HyperCard-style trick where you can keep a morph
> centered in the view?  That might be a good way to bridge the
> 640x480 or 800x600 fixed size but allow for scaling of the Squeak
> window (or for that matter, centering dialogs whether on handhelds
> or desktops).

You can do this with eToys in a ticking script  if you add a temp 
slot:

temp <= World's width - Book's width
Book's left <= temp / 2
temp <= World's length - Book's length
Book's bottom <= temp / 2

Note that you can't just drag a "World's width" phrase from its 
viewer. Use a "Book's width" phrase and replace the "Book's" with a 
tile representing the World (from its halo).

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE



More information about the Squeak-dev mailing list