Expanded Grapple Mechanics
For this week I had to solve an issue where grapple mechanics only worked when individual targets were placed as dedicated objects in the world, and would only allow players to grapple to them instead of having the full functionality we had planned. This was limiting the versatility of the mechanic, especially since 3D player movement was introduced.
The lack of versatility was caused by the original framework being used for the grapple as it was not designed with attaching the targets to moving objects in mind. Ultimately I was able to solve this by making minimal changes to the original framework by attaching the current targets as children to moving objects and changing the movement type of the player in relation to the target by using enumeration placed on the object. This allows the designer to attach the target as a child of any other game object and simply by adjusting one variable in the editor change the behavior of the grapple to act as something that can pull the player to another object, pull another object to the player, or have both objects meet in the middle of the grapple.
Get ProjectHaunt
ProjectHaunt
Action Genre prototype package
Status | Prototype |
Author | NeonRain27 |
More posts
- Monthly MilestoneAug 24, 2023
Leave a comment
Log in with itch.io to leave a comment.