One-Way Weld Constraint

Hi, I’m working on a fighting game right now and want to move a dummy back when its hit. I’ve been using the method of tweening the dummy’s root part. This works but I want to use a weld constraint so that the player moves with the dummy. The only problem is that when I do this the players movements also affect the dummy. How could I make a weld where the dummy’s movements affect the player, but not the other way around?

1 Like

How about Player.Move? You could get the player to move toward the new position of the dummy while keeping it unattached.

If you don’t want to use Player.Move, you could use linear velocities on both characters (in the same direction which is the lookvector of the player) so it gives the illusion of pushing them back. Also make sure that any of those constraints are client-sided unless they’re affecting dummies.

Remember, the best games like Heroes Battlegrounds employ lots of tactics that make it appear to have smooth gameplay. Try observing what happens in heroes battlegrounds and think of ways to copy what you see.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.