How do I spawn a particle for a shockwave in between two fighters?
I have two characters who are punching at the same time and want an effect to happen while that’s happening like a shockwave I don’t know if it’s possible to do but I’ve tried a bunch of different things.
Welcome. I’m not sure what you mean by “shockwave”. Could you post a picture of your game or a drawing of what you want it to look like? Maybe a comparison to another game’s effect.
Here’s a way to get the midpoint between 2 objects:
Add the x positions of both objects and half the result. This is the x position of their mid point.
Then add the y positions of both objects and half the result. This is the y position of their mid point.
mid_point_x = (obj1.X() + obj2.X())/2 and
mid_point_y = (obj1.Y() + obj2.Y())/2