** Help for Slingshot-based Harpoon Effect
KnightStar
Member Posts: 162
Hey Guys -
I'm cranking away on a new project but I've run into a bit of a quandary and I was hoping one of the big brainy GS whizkids in the forum could shed some light on my problem.
In the project I'm working on, one of the game mechanics involve the playing firing an elastic harpoon at a target and reeling it in. The visuals I'm going for is essentially like Scorpion's harpoon attack from Mortal Kombat (http://www.giantbomb.com/images/1300-412364) in which the harpoon is fired out (with line attached), striking a target (or missing) and then reeling back in.
In regards to the aiming a shooting control, I'm using the slingshot mechanic that TShirtBooth threw out a few years back from his CoreControls2 set ( - 2nd control; pull, rotate to aim, and release to shoot).
In regards to the harpoon+line, I've looked at @Orbz Swinging Knight demo () that he shared some time ago, but that demo involves the user touching a target on-screen and the line interpolating from the Knight to the touch point and there's no aiming involved. I'm thinking of spawning (or recycling) an actor that will appear under the harpoon launcher and stretch (interpolate) out to the target vector and then retract back.
I need the Harpoon & line to not only fire from the launcher and retract, but it needs to only go so far as (respectfully) as the player pulls back on the slingshot mechanic.
Any thoughts?
Thanks!
KS
I'm cranking away on a new project but I've run into a bit of a quandary and I was hoping one of the big brainy GS whizkids in the forum could shed some light on my problem.
In the project I'm working on, one of the game mechanics involve the playing firing an elastic harpoon at a target and reeling it in. The visuals I'm going for is essentially like Scorpion's harpoon attack from Mortal Kombat (http://www.giantbomb.com/images/1300-412364) in which the harpoon is fired out (with line attached), striking a target (or missing) and then reeling back in.
In regards to the aiming a shooting control, I'm using the slingshot mechanic that TShirtBooth threw out a few years back from his CoreControls2 set ( - 2nd control; pull, rotate to aim, and release to shoot).
In regards to the harpoon+line, I've looked at @Orbz Swinging Knight demo () that he shared some time ago, but that demo involves the user touching a target on-screen and the line interpolating from the Knight to the touch point and there's no aiming involved. I'm thinking of spawning (or recycling) an actor that will appear under the harpoon launcher and stretch (interpolate) out to the target vector and then retract back.
I need the Harpoon & line to not only fire from the launcher and retract, but it needs to only go so far as (respectfully) as the player pulls back on the slingshot mechanic.
Any thoughts?
Thanks!
KS
Comments
Anyone? Anyone? Bueller?