[Newbies] Question about Etoys Custome Events and Triggering Objects
hakyoku at gmail.com
Tue Sep 4 17:55:20 UTC 2018
I figured out why special events weren't working the way I had them set up.
In order for the events to be scheduled properly, so to speak, they have to
occur individually and be taken care of individually. So instead of 'Tell
All Contents (SCRIPT)', I used a Do (Number of Objects)
Times/PlayerAtCursor Do (then event is triggered and handled for a single
pair of objects)/Cursor IncreaseBy1. This all happens each tick so it
appears as if it's simultaneous. It's, so far, fastest for dealing with
collisions, I will post another project soon with demos/examples.
Also, my copy of Etoys5 starts with 'Custom User Events' checked inthe
preferences. I don't ever make changes to etoys friendly options...I'm not
sure what is going on there...
On Tue, Sep 4, 2018 at 12:12 AM, Jeremy Landry <hakyoku at gmail.com> wrote:
> Here's a book of experiments with various ways of implementing 'OVERLAPS
> ANY (OBJECT)' along with commentary for each experiment. Maybe someone will
> find it useful. Overall, at least on my slow machine, page 2 seems to
> perform the fastest. I explain how each of the 7 versions is set up as the
> idea evolves across the pages.
> I think in the end, having something very specific in mind with regards to
> motion is probably far more useful than creating 'general behaviors', at
> least where realtime behavior and many moving objects is concerned. As
> well, the things I was moving about are a little large compared to what I
> intend to move since there's a 'pixel limit' per frame which is hardware
> dependent as well as dependent on whether the screen is being scaled or
> not. I ran my experiments with no screen scaling at all.
> If anyone has any further ideas on ways to cut screen update time or
> further narrow the amount of 'observations' that happen during a single
> update of all objects on screen, etc. let me know and I will try them out
> and maybe add them to this book/project for others to learn from and use
> for their own stuff.
> On Mon, Sep 3, 2018 at 10:54 PM, Bert Freudenberg <bert at freudenbergs.de>
>> On Mon, 3 Sep 2018 at 19:38, Jeremy Landry <hakyoku at gmail.com> wrote:
>>> What is the intended use for 'triggering object' tile?
>> I don't know. Never used that tile (it's hidden unless eToyFriendly is
>> Reading the code it indeed is intended to find the object that triggered
>> that event / script (meaning the object mentioned in the tellAllSiblings
>> - Bert -
>> Beginners mailing list
>> Beginners at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners