I’ve got to know. Has anyone made googly eyes that look at where you tap on the screen?
I’ve got to know. Has anyone made googly eyes that look at where you tap on the screen?
If not I think such a project should be a very high priority, Pierre Hébert.
]]>
< ![CDATA[
Lol
]]>
< ![CDATA[
ok its official…. someone had to have laced this dudes coffee this morning lmao :-p
]]>
< ![CDATA[
In fact it is relatively easy, but only touches, not dragging.
Lukas Morawietz I’m unable to make it, but in case you (or anybody) want to try just follow this:
Touch=Take the position of the finger (if it was launched from an item take the middle of the item)
Distance= the vector2 from the eyes to the touch
Distance= normalize distance with a tiny value
Place the pupils(different item) ‘Distance’ pixels from the center of the eyes.
Launch the item if you clicked on one
]]>
< ![CDATA[
I think it’s not that easy to compute the distance in a way the eye border never cuts but tangents the pupils…
]]>
< ![CDATA[
If the items are perfect circles it is really easy.
]]>
< ![CDATA[
This would be pretty sweet!
]]>
< ![CDATA[
Maybe I’ll try this weekend, if no one is faster 😉
]]>
< ![CDATA[
Or have a look at the xeyes code 😉
]]>
< ![CDATA[
Tried now. Didn’t work. I don’t know how to do it. Sorry. Maybe TrianguloY will do it…
]]>
< ![CDATA[
Unfortunately my free time has been reduced at minimum, but I’ll try. (Don’t expect it soon)
]]>