How would I make a grappling hook that can swing you around or hook on an enemy like Pathfinder’s grapple from Apex but 2d?
i’ve had the same question myself, i wonder if it’s possible
You could shoot a projectile, and when it hits something set it’s x and y as a global. Then use trig functions to calculate the tension of the grapple
Could you make a example by any chance?
@CodeAlpaca had an example, but sadly deleted it. They may have sigifigant knowledge of how to do this.
I just need a example because I have a small brain.
im out of likes waaaaaaaaaaaaaa
thank you i needed this
I deleted the example because I felt that it was not up to my standards, but I’d be glad to help in whatever way I can.
So for a grappling hook you basically need to make your player go to the hook (My example let you go through walls, which was one of the flaws with it). Get the X and Y of the hook, then the X and Y of your player. Put that into two Ease behaviors (one for the X, and one for the Y)(The player X and Y go into the “From” input, the Hook X and Y go into the “To” input). That will make your player move from it’s current position to the hook position
Thank you(20 hdhdjdhdhd)
Flowlab Game Creator - The Hazard Project Look at the Grappling Drone and Rope objects