My Beetle has a Mental Problem
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
My Beetle has a Mental Problem
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/ ]
- -
But the widget does not stay inwith the heptagonal arena . . .
- -
ALL the movement code is contained in the "ACTION" button.
You can align the widget via the arrowKeys on your keyboard.
Help Needed.
edge detect an arena in which it is confined . . .
[c.f. https://meetedison.com/barcodes/ ]
- -
But the widget does not stay inwith the heptagonal arena . . .
- -
ALL the movement code is contained in the "ACTION" button.
You can align the widget via the arrowKeys on your keyboard.
Help Needed.
- Attachments
-
- BOUNCE.livecode.zip
- Here's the stack
- (9.8 KiB) Downloaded 192 times
-
- VIP Livecode Opensource Backer
- Posts: 9670
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: My Beetle has a Mental Problem
Richmond.
Without exhaustive testing, the snippet in case "135":
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.
Craig
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
Don't pull back so readily.
Craig
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: My Beetle has a Mental Problem
Don't pull back so readily.
Thank you.
Of course that could be interpreted as an extremely filthy remark.
BUT . . .
Just pushes the problem elsewhere: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
- I performed a similar exercise confining myself to angles of 0, 90, 180 and 270
and that problem never arose.
Last edited by richmond62 on Thu Jun 20, 2019 6:24 pm, edited 1 time in total.
-
- VIP Livecode Opensource Backer
- Posts: 9670
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: My Beetle has a Mental Problem
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
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
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: My Beetle has a Mental Problem
Cripes, talk about National Hubris.In the real world, that is, the United States
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 . . .
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 . . .
-
Re: My Beetle has a Mental Problem
Take care of the poor old chap, will you please?
Kelly
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: My Beetle has a Mental Problem
- -intense noveau gestaltic psychotherapy
Wow: you're way ahead of me baby.
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.