I am currently working on a co-op game using the 8Direction behavior, and I want the two players to be tethered together. I found an old forum post from Construct 2 on this topic, but the image that — used to show how to fix the problem is no longer available.
The gist of what I am trying to do is I have two characters and I have a chain of lightning linked between the,. I want that chain to stretch up to 300 pixels after which the characters should not be allowed to move any further from each other.
I know I can detect how many pixels away the characters are from each other by using distance(P1.X, P1.Y, P2.X, P2.Y) but I cant think of how I would make it so that the player can only move in a direction that would make the characters closer together.
If anyone can help me that would be highly appreciated.