Eyes follow cursor

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Eyes follow cursor

Post 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
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Eyes follow cursor

Post by Klaus »

Thanks a lot, Al!
capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Eyes follow cursor

Post 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
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Eyes follow cursor

Post 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
mrcoollion
Posts: 744
Joined: Thu Sep 11, 2014 1:49 pm

Re: Eyes follow cursor

Post by mrcoollion »

Did the same ... LOL :D
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Eyes follow cursor

Post 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:
Image
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Eyes follow cursor

Post 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
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Eyes follow cursor

Post by bogs »

WOOO hoo hoooooooooooo Image
Image
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Eyes follow cursor

Post by Klaus »

bogs wrote: Fri Mar 22, 2019 9:16 pm WOOO hoo hoooooooooooo Image
:D :D :D
capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Eyes follow cursor

Post 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
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Eyes follow cursor

Post by bogs »

Nice starting shot. Hmmmm....
Image
capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Eyes follow cursor

Post 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
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Eyes follow cursor

Post by bogs »

Nice dual mode Al :D
Image
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Eyes follow cursor

Post by jacque »

Way cool. :)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Eyes follow cursor

Post by capellan »

Thanks! :D
Now, I have to find a video of an Owl blinking.
Post Reply