Dear All,
when developing games with eToys it is important to know whether a key
is pressed or released.
This way multiple actions can be controlled at the same time. Something
like:
if (key pressed? <up>)
if (key pressed? <w>)
However I only found "last keystroke".
Is there something built in?
or: Do I need to develop this myself?
or: Do sources exist that add this behaviour?
I found this: http://wiki.squeak.org/squeak/488 and I downloaded eToys 5
from the website.
But I can not get it to run.
Greetings,
Nicco
Spam detection software, running on the system "europa.mgmt.inetu.net", has
identified this incoming email as possible spam. The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: https://aseba.wikidot.com/en:thymiobehaviourinvestigator Hilaire
[...]
Content analysis details: (3.8 points, 3.4 required)
pts rule name description
---- ---------------------- --------------------------------------------------
1.7 SARE_RECV_SPAM_DOMN0b Email passed through apparent spammer domain
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
(hilaire.fernandes[at]gmail.com)
0.9 SARE_RECV_IP_061228 Spam passed through possible spammer relay
1.3 RDNS_NONE Delivered to internal network by a host with no rDNS
0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
Begin forwarded message:
> Hi,
>
> The Squeakland contact page was reluctant to let me message about this problem so I'm spamming you. Sorry.
Seems the form is broken, sorry. I filed a bug report. However, the mailing list is a better place to ask anyway.
> The visibility of a scriptor seems to affect how things work. Here's a link to a page with a more clear description of the problem and a simplified project which exhibits the bad behavior. (Apologies again...our email filters wouldn't let me send the project as an attachment...hopefully you can grab it from the webpage)
>
> http://krypton.mnsu.edu/~kelled/public/etoys/prob_info.html
I am forwarding this mail of yours to our mailing list. Please subscribe here to receive the answers:
http://squeakland.org/discuss/squeakland/
- Bert -
> Regards,
> dk
>
>
> --------------------------------------------------------------------------------
> Dean Kelley, PhD
> Associate Professor of Computer Science
> Department of Integrated Engineering, MSU
> Mankato, MN 56001
Mike,
Good to hear from you. Still swamped, but never so much I can't find time
to help you or one of your students.
First you do not need the *mouseWatcher* script. mouseDown/mouseUp are
event listeners that are always listening, no need to start those scripts
or keep them running. Try deleting that script and your project will still
work.
Okay, a couple of other options depending on how David wants to use this.
1) You can use a holder to hold the two (or more) images you want to switch
between, then iterate through the holder on each mouse down. See page 2 of
attached project. This has the advantage of introducing David to
collections and iterating through the collections (in a visual way where
the holder can help visualize the concepts. See page 1 of attached project.
2) You can use show/hide with two objects where if you click on one object
it hides itself and shows the other (an visa versa). See page 2 of attached
project)
3) You can get really elaborate and create your own Memorize Game (which
students can use to build their own (see page 3 of attached project, I may
need to find a way to make the code simpler and more readable, but it
works).
4) You could create your own scripting tile (well not a real scripting
tile, which would be cool if you could do that) if I have time I might
demonstrate that later.
Also FYI, I am working on a project to allow disabled kids who can only say
squeeze a stuffed animal an have some gross movement skills to communicate
with others using Etoys. And also allow their teachers and parents to
create their own pictographs the child can use to communicate. More on
that later.
Cheers,
Stephen
On Wed, Jul 3, 2013 at 2:15 AM, Mike Lee <curiouslee(a)gmail.com> wrote:
> Hi Steve,
>
> I hope this email finds you well and not too buried under work.
>
> My Zambian student David asked me today for a solution to changing a
> button graphic to another on mouse down. He intends to use this to "flip" a
> card (rectangle object) over to show answer.
>
> I'm proud to say that I came up with something that works, but there
> probably is a better solution.
>
> If you have a minute to look and respond, that would be great. If not, no
> worries.
>
> Mike
>
--
To some of us, writing computer programs is a fascinating game. A program
is a building of thought. It is costless to build, weightless, growing
easily under our typing hands. If we get carried away, its size and
complexity will grow out of control, confusing even the one who created it.
This is the main problem of programming. It is why so much of today's
software tends to crash, fail, screw up.
When a program works, it is beautiful. The art of programming is the skill
of controlling complexity. The great program is subdued, made simple in its
complexity.
- Martin Harverbeke (from Eloquent
JavaScript<http://eloquentjavascript.net/index.html>
)