attempting a Dhalsim stretch hand with Mesh Distortion. What am I doing wrong here?

0 favourites
  • 11 posts
From the Asset Store
Experience the true heartbeat of combat with "Combat Hits - Hand To Hand Fighting SFX."
  • As you can see the sprite I want to stretch becomes invisible what attempting to display it.

    I'm guessing they're occupying the exact same spot but I cannot see anything wrong with my code for it to end up that way

    dropbox.com/scl/fi/zvrimutedfl95rzzjw1wb/MyMeshTest.c3p

  • Set the Sprite size to 1x1 and the position to 0,0

  • Set the Sprite size to 1x1 and the position to 0,0

    Well that worked! Thank you.

    But I don't understand why I needed to set it like that before it would appear

  • Mesh points are positioned relative to the object’s quad. 0,0 for one corner and 1,1 for the other opposite one. It’s a bit different but setting the pos to 0,0 and the size to 1,1 is one way to let you use layout coordinates and mesh point positions. Another way is to take and xy position and convert it with:

    (X-self.x)/self.width

    (Y-self.y)/self.height

  • R0J0hound

    Hi.

    The thread where we replied "map generation" has been deleted.

    Do you know the reason, maybe there was some violation there?

  • No violation that I know of. The original poster probably deleted the topic and it took all the replies with it. I’ve seen it happen before a few times. I guess this forum allows that but it always irks me a bit. We go out of our way to post a working solution to a problem and they get selfish and delete the topic after they get it. The solution was meant to help them, sure, but it’s also for the benefit of anyone else browsing the forum.

  • No violation that I know of. The original poster probably deleted the topic and it took all the replies with it. I’ve seen it happen before a few times. I guess this forum allows that but it always irks me a bit. We go out of our way to post a working solution to a problem and they get selfish and delete the topic after they get it. The solution was meant to help them, sure, but it’s also for the benefit of anyone else browsing the forum.

    That's too bad, I wanted to see your solution.

    I came up with another option today via the tree branch calculation method.

    Looks like we need to move on, that's the way of the world.

  • igortyhon

    No worries, I just made a new topic to share the solution. This is at least the second time that user deleted a topic I posted a solution to. No harm done though, I should recognize his username next time and save the posts so I can repost the topic. I was curious to check out your example as well but the link was broken for me when I tried it.

    New topic

    construct.net/en/forum/construct-3/how-do-i-8/re-generate-level-map-179636

    MPPlantOfficial

    Apologies for derailing your topic. Tangent over.

    -cheers

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Mesh points are positioned relative to the object’s quad. 0,0 for one corner and 1,1 for the other opposite one. It’s a bit different but setting the pos to 0,0 and the size to 1,1 is one way to let you use layout coordinates and mesh point positions. Another way is to take and xy position and convert it with:

    (X-self.x)/self.width

    (Y-self.y)/self.height

    Oh I see. Will definitely try that. Thanks again!

  • No violation that I know of. The original poster probably deleted the topic and it took all the replies with it. I’ve seen it happen before a few times. I guess this forum allows that but it always irks me a bit. We go out of our way to post a working solution to a problem and they get selfish and delete the topic after they get it. The solution was meant to help them, sure, but it’s also for the benefit of anyone else browsing the forum.

    I understand you, it's happened to me a couple of times too, I helped someone and instead of receiving a "thank you" I saw the topic disappear, it's not nice

  • As you can see the sprite I want to stretch becomes invisible what attempting to display it.

    I'm guessing they're occupying the exact same spot but I cannot see anything wrong with my code for it to end up that way

    https://www.dropbox.com/scl/fi/zvrimutedfl95rzzjw1wb/MyMeshTest.c3p?rlkey=k357kpm5njtan0r35j0pxj5pl&dl=0

    like Dhalsim from street fighter? Unfortunately the link doesn't work

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