The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.36 / 5.00 33,851 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 12,195 ViewsI making a menu for a game and so far the effect I have been trying to make has eluded me. What I'm trying to do is make the menu buttons move ever so slightly away from my mouse when it draws near, but stay tethered to a single point so it doesn't keep moving away.
I've tried combining elements of this with all sorts of other things out there, but I can't achieve what I'm trying to get. Could someone show me how to script this or even just point me in the right direction?
You want two forces acting on the button. One pushing it away from the mouse according to some function, and one pulling it back toward its constraint point.
So, you know, do that in the code.