elasticity

0 favourites
  • 3 posts
  • hello community

    how can i make an object to follow the mouse but with elasticity.

    it would be better if it were possible with the physics behaviour,and making the elasticity with 8 direction movement. sorry if it is a nooby question. (but it gives you a reason to increase your post count <img src="smileys/smiley2.gif" border="0" align="middle" /><img src="smileys/smiley36.gif" border="0" align="middle" /> <img src="smileys/smiley36.gif" border="0" align="middle" /> )

    thanks in advance

  • Ah ... That's really easy , and you don't even need behaviors

    Only 1 little event ...

    Every Ticks : *NameofTheObjectthatfollowsthemouse* | Set Position

    X = Lerp ( *NameofTheObjectthatfollowsthemouse*.X , Mouse.X , 0.5*dt )

    Y = Lerp ( *NameofTheObjectthatfollowsthemouse*.Y , Mouse.Y , 0.5*dt )

    Cheers

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • thanks, you have been helping me quite a lot

    (note to anyone who reads this)

    increase the delta time to make it follow the mouse more

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)