How do I -'Play-dough/re-shape' interactions on sprites?

0 favourites
  • 2 posts
From the Asset Store
5 glow creatures with size, shape and color variations.
  • I'm having trouble figuring out a good way of getting sprites to alter their shape after interactions or triggers, which I need as a game mechanic for a puzzle game.

    For example, I don't know how to make a circle get 'stamped/crushed' into a (smaller or equal-sized) square, or have a sprite generally act like play-dough when it comes to objects pressing into it (squished or pulled into a shape).

    So far, my only idea is to manually make animations for each re-shaping, but that seems too clunky to work with, especially when interacting with other objects (barring tricks like hiding animation/sprites shifts behind other sprites), and doesn't allow for making the 'shaping' into a proper game mechanic.

    Is there a better behavior/physics way of going about this 'morphing' of a sprite than just basic animations?

    EDIT: Another idea I got would be that the morphing sprite treats instances of 'on overlap/on collision' by morphing its shape (not position!) so that it's no longer doing so. This should in theory make is so that it will get 'squished' by an object (until it stops moving), but I'm not sure how to make the actual morphing happen in such a case...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's basically soft body dynamics and i've fiddled with it

    here:

    and here:

    It's more like jelly than putty, but I suppose with a lot of tweaking you could correct that. Having two soft objects collide is not solved in either of those capx, so that would need to be done. To do that you'll need some ingenuity of find a paper that has a existing method.

    On the graphics side, the ways you can manipulate sprites is limited to resizing and rotation, although you could do distortions with the paster behavior.

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