How to connect multiple instances through the lines?

This forum is currently in read-only mode.
From the Asset Store
solution for games like "fruit ninja" and drawing applications
  • Question is - when I create new sprite instance in the game how to make it connects to all other instances through the lines (like in the game World of Goo)?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Question is - when I create new sprite instance in the game how to make it connects to all other instances through the lines (like in the game World of Goo)?

    oh

    it depends whether u can move new sprites.

    but teh way to do this I can think of would be.

    spawning new sprite, setting its height to distance between two sprites, then rotate/moving it so its in correct position.

    or u can use canvas, but I never used canvas so I dunno how.

    there is also line object, u could use that as well. this is probably best option. I didn't know it was there till now.

    I'd need a bit more info to give u any advice on how to connect the instances, it realy depends on your game mechanics.

    to make something like world of goo, you probably could do something like, Pick all instances within X radius and connect new sprite to each.

  • I did this for the screen-space trails example.

    Used a "bridge" sprite with hotspot at one edge, positioned said "bridge" sprite on one of the "objects" to join, then set the bridge's angle towards the other object and stretched it according to the distance between them.

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