3-6 Fish on the Line
Based on the plan, it was time to start getting this last mechanic into the game, starting with getting the fish to move in the other direction. The first thing I did was get back to looking things up and got some help from the Unity forums.
https://forums.unrealengine.com/t/how-do-i-make-a-blueprint-object-move-away-from-another-object/448076/4
Using this as a jumping-off point, the first test I went through was this:
Turns out, a quick connection in the level script was all I really needed to get it to move back:
The next thing is to bring the bobber back with the fish.
As it turns out, there is an "Attach Actor to Component" which lets you pick the parent and child, so using the same collision that I set up to delete the fish earlier, I was able to put this together:
Testing it, it looks like the rope has the same Length value in the editor, yet still stretches out as the fish steals it away. Something to look into now is just looking at a hard jolt back from the rod rather than the actual rope length to pull the fish. should make things a little less complicated but there's still a good bit to do there.
Comments
Post a Comment