Page 1 of 1

Eyes follow cursor

Posted: Wed Mar 20, 2019 1:51 am
by capellan
Hi All,

Recently, Klaus asked for a stack
that shows two eyes following the
cursor. Check this sample stack.

Surely you could find a simpler
and faster way to do the same.

In this sample stack, you could
make invisible both red marks.

Al
EyeFollowCursor_v02.livecode.zip
stack_screenshot.png

Re: Eyes follow cursor

Posted: Wed Mar 20, 2019 11:57 am
by Klaus
Thanks a lot, Al!

Re: Eyes follow cursor

Posted: Wed Mar 20, 2019 8:50 pm
by capellan
You are welcome! :)

By the way, you could set the line weight
of both red marks to zero, instead of
making them invisible.

Using a circle for setting the angle was
needed, although would be clearer to
use a single line with just two coordinates...
but lines do not have an angle property
so it would require a few more calculations
to set the correct line length for each angle.

Check this new version 03 that shows eyes
that track the mouse independently.

Al
EyeFollowCursorv3.livecode.zip

Re: Eyes follow cursor

Posted: Wed Mar 20, 2019 8:52 pm
by Klaus
Hi Al,

yep, I already "pimped" your first version to create real "cross-eyes" like obviously in your second version. :D


Best

Klaus

Re: Eyes follow cursor

Posted: Wed Mar 20, 2019 9:09 pm
by mrcoollion
Did the same ... LOL :D

Re: Eyes follow cursor

Posted: Wed Mar 20, 2019 9:25 pm
by bogs
Yes, but did you also make it so if you move the cursor across the middle of an eye, the pupil follows it there? :twisted:

Re: Eyes follow cursor

Posted: Fri Mar 22, 2019 9:11 pm
by Klaus
bogs wrote:
Wed Mar 20, 2019 9:25 pm
... if you move the cursor across the middle of an eye...
Nope, that's way too cruel, you psycho! :D

Re: Eyes follow cursor

Posted: Fri Mar 22, 2019 9:16 pm
by bogs
WOOO hoo hoooooooooooo Image

Re: Eyes follow cursor

Posted: Fri Mar 22, 2019 9:29 pm
by Klaus
bogs wrote:
Fri Mar 22, 2019 9:16 pm
WOOO hoo hoooooooooooo Image
:D :D :D

Re: Eyes follow cursor

Posted: Sun Mar 24, 2019 4:39 am
by capellan
Does anyone want to post an enhanced version
using eyes and photos from real subjects? :D

Al

https://i2.wp.com/media.mnn.com/assets/ ... C364&ssl=1

Re: Eyes follow cursor

Posted: Sun Mar 24, 2019 2:22 pm
by bogs
Nice starting shot. Hmmmm....

Re: Eyes follow cursor

Posted: Wed Mar 27, 2019 3:02 am
by capellan
Here it is! :D
Although screenshot shows v02,
I uploaded a new version: v03
LC7-Owl-Eyes-v03.livecode.zip
Screen Shot 2019-03-26 at 9.56.48 PM.jpg

Re: Eyes follow cursor

Posted: Wed Mar 27, 2019 1:22 pm
by bogs
Nice dual mode Al :D

Re: Eyes follow cursor

Posted: Wed Mar 27, 2019 8:09 pm
by jacque
Way cool. :)

Re: Eyes follow cursor

Posted: Wed Mar 27, 2019 10:37 pm
by capellan
Thanks! :D
Now, I have to find a video of an Owl blinking.