K. K. Subramaniam | 1 Dec 2009 03:32
Picon

Re: Collision detection, only one object detects the collision

On Tuesday 01 December 2009 04:12:58 am Carl Cravens wrote:
> > What if the bullet does a "I'm not over the background" test?
> > 
> > But yes, in general Etoys is set up not to make things pretty but to
> > allow the principles to be applied directly.
> 
> My nine-year-old likes "pretty".  He wants to write Flash games, but
>  getting the tools set up on Linux to achieve "hello world" seems to be a
>  monumental task. :)
You have to make sure that your son is at a stage where he can handle thoughts 
like "If I were a bullet what would I do....?". Etoys can then enable him to 
translate those "whens" and "ifs" into a script. The goal here is not so much 
to create a full-fledged game but to motivate, enable and strengthen such ways 
of thinking. The output may look crude to people used to flashy (pun intended 
:-)) games but its author would have learnt many concepts in the process. 
Etoys is like dumbbells for brain cells.

In this particular case, create a uniquely colored marker morph (normally 
hidden) and have the bullet "show" it at a hit spot when collision is 
detected. Other objects can detect overlap with marker's color, hide it and 
then trigger an 'explosion' script.

Tip: do not use the test "overlaps color" directly in all scripts to detect 
collisions. Use a separate script "collision" for the test block and then call 
it from other scripts. When you decide to change the colors, only one script 
needs to be changed. A good opportunity to introduce the concept of "hiding 
implementations".

Subbu
(Continue reading)

mrsteve | 1 Dec 2009 04:42

How do I create a "text link" to show a script?

How can I create a "link" in a piece of text that on"mouse down" event it shows a particular script.




-------------------- m2f --------------------

(from forum)
http://squeakland.org/forums/viewtopic.php?p=14096#14096

-------------------- m2f --------------------
_______________________________________________
squeakland mailing list
squeakland@...
http://lists.squeakland.org/mailman/listinfo/squeakland
K. K. Subramaniam | 1 Dec 2009 07:06
Picon

Re: How do I create a "text link" to show a script?

On Tuesday 01 December 2009 09:12:00 am mrsteve wrote:
> How can I create a "link" in a piece of text that on"mouse down" event it
>  shows a particular script.
See SimpleButton in the Supplies. It associates a piece of text with a script 
and you can choose what type of mouse action will trigger the script. You may 
set the button color to transparent and border width to zero if you like. The 
label can be edited from the white halo button ("change label").

Subbu
Bert Freudenberg | 1 Dec 2009 12:33
Picon
Gravatar

Re: How do I create a "text link" to show a script?

On 01.12.2009, at 07:06, K. K. Subramaniam wrote:
> 
> On Tuesday 01 December 2009 09:12:00 am mrsteve wrote:
>> How can I create a "link" in a piece of text that on"mouse down" event it
>> shows a particular script.
> See SimpleButton in the Supplies. It associates a piece of text with a script 
> and you can choose what type of mouse action will trigger the script. You may 
> set the button color to transparent and border width to zero if you like. The 
> label can be edited from the white halo button ("change label").

... and then you can embed that button in the text (just like you can embed arbitrary objects in a text).

It seems we have some rendering and layout problems though (SQ-613). I've attached a demo project anyway.

- Bert -

Attachment (TextAnchor.001.pr): application/octet-stream, 31 KiB
_______________________________________________
squeakland mailing list
squeakland@...
http://lists.squeakland.org/mailman/listinfo/squeakland
Timothy Falconer | 3 Dec 2009 14:42

http://squeakland.org/ - down

Hi all,

It's back up.  The night guy at our upstream provider didn't know where the restart instructions were after he fixed the disk space problem. :(    This is surprising and disturbing.   It's possible they only linked the instructions for our other server, which has all our other production websites.   I don't know.

Last night was about a runaway log file, pertaining to the wiki upgrade in the works.

Tim




On Dec 3, 2009, at 12:37 AM, Milan Zimmermann wrote:

500 Servlet Exception

/home/immuexa/www/squeakland/WEB-INF/work/_ejb/SmArticle/SmArticleBean__QPersist.java:983:error while writing _ejb.SmArticle.SmArticleBean__QPersist._caucho_commentList__class:No space left on device public class _caucho_commentList__class extends com.caucho.persist.PersistentList { ^Note: /home/immuexa/www/squeakland/WEB-INF/work/_ejb/SmArticle/SmArticleBean__QPersist.javauses unchecked or unsafe operations.Note: Recompile with -Xlint:unchecked for details.1 error_______________________________________________
etoys-dev mailing list
etoys-dev-tgy29QT0A092KDkfy0k2sw@public.gmane.org
http://lists.squeakland.org/mailman/listinfo/etoys-dev

--
Timothy Falconer
Squeakland Foundation
610-797-3100
--
"Intelligence is what you use when you don't know what to do."  ... piaget





_______________________________________________
squeakland mailing list
squeakland@...
http://lists.squeakland.org/mailman/listinfo/squeakland
K. K. Subramaniam | 4 Dec 2009 03:53
Picon

Re: 2 for Etoys5

On Friday 20 November 2009 04:53:35 pm Bert Freudenberg wrote:
> On 20.11.2009, at 08:22, K. K. Subramaniam wrote:
> > Unlike other basic morphs, TextMorph has both background (page/layout)
> > and foreground elements (paragraphs). So the resize and color buttons are
> > ambiguous. Do the buttons affect background or the para style?
> >
> > I suppose the autoFit option could be used to disambiguate - if it is ON,
> > then resize affects the text as you describe. If it is OFF, then resize
> > applies to the background. Or we could use shift-resize to affect the
> > background.
> 
> In any case someone needs to open a ticket at
> 
> 	http://tracker.squeakland.org/
> 
Done . http://tracker.squeakland.org/browse/SQ-617 .. Subbu
mrsteve | 4 Dec 2009 04:34

Re: How do I create a "text link" to show a script?

Was searching the web for something else and I found this answer to my question from Subbu at http://lists.squeakland.org/pipermail/squeakland/2009-December/005042.html

Thanks Subbu

Quote:
On Tuesday 01 December 2009 09:12:00 am mrsteve wrote:
> How can I create a "link" in a piece of text that on"mouse down" event it
> shows a particular script.
See SimpleButton in the Supplies. It associates a piece of text with a script
and you can choose what type of mouse action will trigger the script. You may
set the button color to transparent and border width to zero if you like. The
label can be edited from the white halo button ("change label").

Subbu




-------------------- m2f --------------------

(from forum)
http://squeakland.org/forums/viewtopic.php?p=14350#14350

-------------------- m2f --------------------
_______________________________________________
squeakland mailing list
squeakland@...
http://lists.squeakland.org/mailman/listinfo/squeakland
jonelo | 5 Dec 2009 02:54

Re: Introductions

Hi all
I'm new here... Well, I stumbled on this project accidently, honestly - I'm not sure how to use it (yet) , but i think it's great idea. Too bad I didn't think of it first

Anyways, I'll stick around and learn more







-------------------- m2f --------------------

(from forum)
http://squeakland.org/forums/viewtopic.php?p=14404#14404

-------------------- m2f --------------------
_______________________________________________
squeakland mailing list
squeakland@...
http://lists.squeakland.org/mailman/listinfo/squeakland
mrsteve | 6 Dec 2009 08:02

How can I have text wrap around objects emded inside them

I want to be able to include pictures (et al) inside text and have the text wrap around the picture automatically.

Bert posted a project here:
http://tracker.squeakland.org/browse/SQ-613

In which the text wraps around the button. How did you do that?

Also very clever jump animation.

Thanks!




-------------------- m2f --------------------

(from forum)
http://squeakland.org/forums/viewtopic.php?p=14485#14485

-------------------- m2f --------------------
_______________________________________________
squeakland mailing list
squeakland@...
http://lists.squeakland.org/mailman/listinfo/squeakland

Gmane