Archie323's Forum Posts

  • 9 posts
  • Thank you guys for the great help, rojo your math worked a treat thanks guys

  • Set to 1 - (1/range * distance)

    If you want no damping at (range) 100 pixels. Its 1 - (1/100 * 100) = 0

    at a distance of 50 it is 1 - (1/100 * 50) = 0.5

    at zero distance it is 1 - (1/100 * 0) = 1

    This is ofcours linear.

    Most natural things are logaritmic. Or.

    1 - ((1/range)^2 * (distance)^2) (i think)

    Hi thanks for your response but it doesnt seem to be working its either setting the linear damping to 0.99... 0r just 1, is this how I was meant to implement it?

  • Please one of you awesome math experts help me

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey people, so I want to set an objects linear damping value to distance(object x,object y, mouse x, mouse y) and have the objects linear damping increase as it gets closer to the mouse but the opposite happens as linear damping relys on bigger numbers to slow the object, any way of reversing the distance output? any help is greatly appreciated

  • ok so Ive been thinking, is there anyway to invert a number which is in a variable, like if the varible is set go from 0-1000 is there a way to invert it somehow to output to start at 1000 and go to 0?

  • Hopefully following example will give you an idea:

    https://dl.dropboxusercontent.com/u/659 ... ine01.capx

    Hey thnx for the reply but cant test the capx just now as not on my computer,

    any chance you can screenshot the solution?

  • Hi people, I need a lil help with something and know tht one of you will have a simple solution for me

    So basically I want a object to move towards the mouse every tick with a physics force but if its far away I want it to move fast towards the the mouse and when getting closer to gradually slow until a stop when overlapping the mouse sprite, any elegant solutions? thnx

  • Hello people I just need a little help with something im testing,

    Im testing a game similiar to 2048 and I would like to drop a square next to 2 other squares and have it register that its a set of three, any easy way to do this? or hard

  • hello folks, okay im pretty new to construct 2 but got a pretty good grasp of the essentials but have one problem which I really need help with.

    Ill put it simply, I have a physics wheel and want to put another physics wheel inside it like a clutch, so ill spin up the inner wheel then on a press of a button I want to transfer the momentum and force to the outer wheel and send them both moving, is this possible and if so please let me know, thanks in advance, love C2 btw

  • 9 posts