0 Favourites

Set sprite distortion point position

This forum is currently in read-only mode.
  • 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.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • 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

  • 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)
Similar Topics Posts Views Last Post
Unread hot topic
0 Favourites
Sprite Font Generator - v3
368 112,355
RetroDaddy's avatar
RetroDaddy
Unread hot topic
217 18,565
humanescape's avatar
humanescape
Unread hot topic
86 28,716
St4rDu57's avatar
St4rDu57