Set sprite distortion point position

This forum is currently in read-only mode.
From the Asset Store
Connect the dots in the correct order and draw happy animals!
  • right now sprite distortion is pretty strange to use. you have to set displacement of a point rather than give it a position to be at, you should be able to set a displacement points postion rather than its displacement.

    the only way to do this requires you to know the position of a point and then do a little formula that i always forget.

    plz put an option to set distort point position rather than having only displacement.

    btw im wondering how david made that smooth fish example a while ago.

  • David seemed to do something like what you're requesting for the 'Build a Tower out of Springs' example, but he never provided a .cap. even if it's not exactly what you're requesting, i'd really like to know how he got the goo to stretch between the pairs of nodes like that.

  • David seemed to do something like what you're requesting for the 'Build a Tower out of Springs' example, but he never provided a .cap. even if it's not exactly what you're requesting, i'd really like to know how he got the goo to stretch between the pairs of nodes like that.

    I think the goo balls and the stretching goo are two seperate sprites, so instad of the goo ball stretching, it's actually a pre done stretching sprite.

  • > David seemed to do something like what you're requesting for the 'Build a Tower out of Springs' example, but he never provided a .cap. even if it's not exactly what you're requesting, i'd really like to know how he got the goo to stretch between the pairs of nodes like that.

    >

    I think the goo balls and the stretching goo are two seperate sprites, so instad of the goo ball stretching, it's actually a pre done stretching sprite.

    oh, yeah i know the two are separate -- but the stretchy sprite needs to know the coordinates of the two points to stretch to.

  • but the stretchy sprite needs to know the coordinates of the two points to stretch to.

    actually thats pretty easy to do. theres an action point on one end of the goo cylinder, and it sets its postion to one of the balls, then angles it towards the other. THEN, it always sets its width to the distance between the two balls. Remeber, width is a form of streching

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • actually thats pretty easy to do. theres an action point on one end of the goo cylinder, and it sets its postion to one of the balls, then angles it towards the other. THEN, it always sets its width to the distance between the two balls. Remeber, width is a form of streching

    I think he's wondering how the instances are picked since their both the same object.

  • > actually thats pretty easy to do. theres an action point on one end of the goo cylinder, and it sets its postion to one of the balls, then angles it towards the other. THEN, it always sets its width to the distance between the two balls. Remeber, width is a form of streching

    >

    I think he's wondering how the instances are picked since their both the same object.

    its can be easily done with two variables and two families on said object type.

    one variable

    all you need to do is

    -foreach blue

    +green value ('ID') is equal to blue value ('AttachedID') (this picks the second object based on the object ID that blue wants to be attached to)

    then goo set position to blue

    and then you set goo stretch width to distance(blue.x,blue.y,green.x,green.y)

    and angle towards green.

  • > but the stretchy sprite needs to know the coordinates of the two points to stretch to.

    >

    actually thats pretty easy to do. theres an action point on one end of the goo cylinder, and it sets its postion to one of the balls, then angles it towards the other. THEN, it always sets its width to the distance between the two balls. Remeber, width is a form of streching

    this worked great. thanks

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