objects going around a solid object

This forum is currently in read-only mode.
From the Asset Store
The ultimate voice pack filled with 1,536 files of .......wav and mp3 of individual numbers, letters, and words (that go
  • Is there any way to do this?.The green dots are linked to the blue and red squares all the time ,But when the green dots collide with a wall they must go around the wall but keeping there link to the other square.

    It works like the illustration i made below.

    <img src="http://dl.dropbox.com/u/7658043/picproblem.jpg" border="0" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Really? Is there no solution for this problem??.Maybe some kind of node system to get the dots around the wall in some way?.

  • ok Im starting to get the hang of it somehow.But the dots are going haywire now lmao <img src="smileys/smiley36.gif" border="0" align="middle" /> .Wow i never thought an event driven app could be more confusing than programming lol.

  • I think you'd need to work with the pathfinding plugin, or something. In any event I feel what you want to do would require some advanced math computation to get it to be just right.

  • I've tried this

    If it's not good enough, as EmperorIng360 says, try Kyatric's pathfinder plugin.

  • Nice example Noga.Ok...Where's Kyatric's Pathfinder plugin??.It's almost like a piece off string which is tied to each object, when that string hits a block in the middle then it goes backwards but the block's will keep going forward until the string tightens.

    Your'e right emperoring it would take some serious mathematical skills to pull this of correctly.

  • Here's the plugin. It's for C2, but it's well commented so it shouldn't be that hard to convert it to CC.

  • Well, here's a super quick and dirty approach. It would need some extra calculations to deal with unevenly sized or grouped solids, but the idea is there.

    Check it out. The end and beginning balls can be drag and dropped, you can also change the number of steps in the Global Variable.

  • Very nice example indeed

    But here is what should actually happen.I hope this gif animation works.

    <img src="http://dl.dropbox.com/u/7658043/example.gif" border="0" />

  • Hm..What about linking together some physics objects with large transparent borders for the chain?

  • That could work but for some reason the chain goes through the wall when i set it to a physics object.I will try the Vector plugin and see if i can do something with that.

  • Is the solid always a single object? Because if so, the effect would be easy as pie to cheat using a small edit of my method - just make the move away from object relative to distance from the object.

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