...Have an Eye Follow the Cursor

Get help using Construct 2

Post » Mon Jul 22, 2013 3:16 pm

Thats it! And so simple, thank you very much spongehammer. :)
I thought I have to copy all the things from the xeyes site to make it work but one line is enough.

I figured out how to ratate towards mouse klkitchens but I wanted them to rotate inside the eyes (radius).
The solution of spongehammer was:
Sprite | Rotate 10 degrees toward (Mouse.x, Mouse.y)
B
47
S
14
G
5
Posts: 635
Reputation: 8,017

Post » Mon Jul 22, 2013 4:23 pm

You're welcome.
B
44
S
15
G
9
Posts: 1,096
Reputation: 11,013

Post » Thu Jul 25, 2013 4:47 pm

I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
53
S
16
G
8
Posts: 6,157
Reputation: 19,744

Post » Sun Nov 29, 2015 6:51 pm

Hi @Bl4ckSh33p

Sorry to reopen this thread but I've this same issue and I tried to use the rotate toward action but the eyes only rotate on its own axis. Did you change the image point position too? Could you give some more details? Thanks in advance.

Edited:

Image
Last edited by RBuster on Sun Nov 29, 2015 7:01 pm, edited 2 times in total.
B
65
S
13
G
2
Posts: 969
Reputation: 6,732

Post » Sun Nov 29, 2015 6:57 pm

RenatoB wrote:Hi @Bl4ckSh33p

Sorry to reopen this thread but I've this same issue and I tried to use the rotate toward action but the eyes only rotate on its own axis. Did you change the image point position too? Could you give some more details? Thanks in advance.


Out of interest - why did you delete your previous post here and then re-add it? You could have just edited it using the 'pencil' icon.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,844
Reputation: 48,289

Post » Sun Nov 29, 2015 7:01 pm

@zenox

I know. It was my mistake. I deleted unintentionally.
B
65
S
13
G
2
Posts: 969
Reputation: 6,732

Post » Sun Nov 29, 2015 7:31 pm

You could either put the origin in a different position so the pupil is at the side of the eye while the origin is at the center, or you could use my example and add the rotaion..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
53
S
16
G
8
Posts: 6,157
Reputation: 19,744

Post » Mon Nov 30, 2015 7:54 am

spongehammer

404
B
206
S
27
G
13
Posts: 1,840
Reputation: 35,800

Post » Mon Nov 30, 2015 8:36 pm

LittleStain wrote:You could either put the origin in a different position so the pupil is at the side of the eye while the origin is at the center,


Thanks, but it didn't not worked very well. It wasn't natural.

or you could use my example and add the rotaion..


I tried to adapt your script, changing the touch position by object position, but it didn't work too.

Maybe @spongehammer could publish the capx again...
B
65
S
13
G
2
Posts: 969
Reputation: 6,732

Post » Mon Nov 30, 2015 9:14 pm

B
44
S
15
G
9
Posts: 1,096
Reputation: 11,013

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: ManuelPerez and 24 guests