Page 1 of 1

My Beetle has a Mental Problem

Posted: Thu Jun 20, 2019 5:20 pm
by richmond62
I have a merry SVG widget of a beetle that is meant to
edge detect an arena in which it is confined . . .

[c.f. https://meetedison.com/barcodes/ ]

-
Beetle.png
-
But the widget does not stay inwith the heptagonal arena . . .
-
Yikes.png
Yikes.png (15.31 KiB) Viewed 4458 times
-
ALL the movement code is contained in the "ACTION" button.

You can align the widget via the arrowKeys on your keyboard.

Help Needed. 8)

Re: My Beetle has a Mental Problem

Posted: Thu Jun 20, 2019 6:04 pm
by dunbarx
Richmond.

Without exhaustive testing, the snippet in case "135":

Code: Select all

 subtract 20 from UD
            subtract 20 from LR
            move widget "Beetle" to LR, UD
causes the widget to pull out of the rect of the heptagon. Something about the loc of the widget when it is in that position, that does not come into play when oriented in other positions in other parts of the graphic. This likely confuses it when it is time to move on.

Don't pull back so readily. :wink:

Craig

Re: My Beetle has a Mental Problem

Posted: Thu Jun 20, 2019 6:15 pm
by richmond62
Don't pull back so readily.

Thank you.


Of course that could be interpreted as an extremely filthy remark. 8)

BUT . . .
case "135"
repeat until intersect (widget "Beetle", img "wall", 10)
add 10 to UD
add 10 to LR
move widget "Beetle" to LR, UD
end repeat
--subtract 20 from UD
--subtract 20 from LR
move widget "Beetle" to 200,200
set the angle of widget "Beetle" to 180
break
Just pushes the problem elsewhere:
-
Fioch.png
Fioch.png (12.03 KiB) Viewed 4430 times
I performed a similar exercise confining myself to angles of 0, 90, 180 and 270
and that problem never arose.

Re: My Beetle has a Mental Problem

Posted: Thu Jun 20, 2019 6:24 pm
by dunbarx
Richmond.

In the real world, that is, the United States, "pull back" means nothing.

This is not to say I did not notice something of what you mentioned. I did indeed, as I wrote it.

Here we say "pull out", and it is always accompanied by "in time". Americans, sadly, are rarely on time, much less in it.

Craig

Re: My Beetle has a Mental Problem

Posted: Thu Jun 20, 2019 6:50 pm
by richmond62
In the real world, that is, the United States
Cripes, talk about National Hubris.

My younger son has just relocated from Philadelphia to Los Angeles (work), and says
that most people in the U.S.A. wouldn't know what the "real world" meant: complaining
because they cannot afford a car!

Bulgaria is just as 'real' (whatever 'real' means: I'm not entirely sure) as
any of the other 17 countries I've worked in (the U.S.A. being one of them).

Not, frankly, that I care very much for the 'real world', and have spent
the better part of my life lovingly carving my own private bubble . . . 8)

As far as I can work out the main difference between the U.S.A. and
Bulgaria is simply a matter of scale: your dumpsters are bigger for fatter dumpster divers to dig in,
your social problems are bigger, your Universities are bigger, your pay packets are bigger,
your medical charges are bigger . . . and so on.

Part of my fantasy is to get the 'Beetle' widget to behave itself . . .
-
bh.jpg

Re: My Beetle has a Mental Problem

Posted: Thu May 28, 2020 5:17 am
by kdjanz
BOUNCE.livecode.zip
(10.17 KiB) Downloaded 212 times
So I've been reading old stuff and this caught my eye (like the maze problem) so I downloaded it for a look. After an hour of intense noveau gestaltic psychotherapy, I believe your beetle has had a breakthrough... it now backs away from the walls it hits just a little bit more so that the hind foot is not still touching the wall when it finds the new direction. To test the new aversion therapy (as per Clockwork Orange protocols) I created a new more random shape for the walls and it passed with flying colours again.

Take care of the poor old chap, will you please?

Kelly

Re: My Beetle has a Mental Problem

Posted: Thu May 28, 2020 9:33 am
by richmond62
intense noveau gestaltic psychotherapy
-
index.jpg
index.jpg (8.01 KiB) Viewed 3702 times
-
Wow: you're way ahead of me baby. 8)

Just as soon as I'm sitting comfortably in front of my 'main machine' up in the mountains, I'll have
a look at your work . . .

. . . currently 'down' in the Shitty (err . . . City) visiting my accountant and the tax office . . . sheer joy.