DevLog Week 4 - Pickup Items


Update Summary

Game Feature

Near interactable object highlighting

In this update, the objects that designed to able to interact by player will be showing white lines around it when it been selected. When the player near and facing the object, the object will highlight with a white outline, this object will be selected to interact if player press any interacts key. If multiple objects in front of the character, the closest one will be selected and highlighted.

Currently highlighted objects some of them are only able to pickup, and reset of them have no action at the moment, in the future update, there will be other interaction action gets implemented.


Closest object near to character highlighted


Character

Near item pickup & dropdown

When the object in front of the character got highlighted with a white outline, the player will able to tap pickup/dropdown key(K), if the object highlighted is able to be picking up, character will play a picking up animation and pick up the object and holding it on top of the head. The character will only be able to pickup object when it is on idle or walk state, run and instant stop action will not able to play pickup animation and pick an object up.

In the future update, object dropdown animation will be added.


Character pickup the closest object highlighted

While the character picked up an object, the character will still able to walk or run while holding the object, instant stop action will still be triggered after run. During run or instant stop action, character will not allowed to drop the object.


Character run around while holding object

While the character holding an object, the object will temporarily disable its collision to prevent it bump on other collisions while holding. When dropped the object down, the object collision will keep as disable until the character walks away from it, then it will enable the collider to its original state and allow the character kick it around.


Object enable its collision after character walk away


Feedback

The character is unable to control and frozen when interact with the crop object in game, and sometimes when dropdown an object also causes this issues.

A bug has been found and fixed, crop is highlighted as an interactable object but it don't have a pickup function, when trying to pick it up causes an error that made the animation stuck for its current state, this resulted character stuck with "onAction" state, while in this state, the player will unable to do any controls to the character.

A bug has been found and fixed, pickup key is triggering multiple times per tap, when character is playing pickup animation, another dropdown action is asked to drop the item immediately.

A bug has been found and fixed, when pickup animation is playing, the object closest to the player will assign as picked up object, then the dropdown action will be allowed to trigger. If pickup/dropdown key(K) is tap multiple times too fast, the character will freeze to pickup animation, and stuck at "onAction" state.


The pickup action made the object teleport to the top of character's head, which is not realistic, suggest to add an animation to the object.

Currently, the object changes its position instantly to the top of character's head once pickup animation is stopped. Was thinking to add unique animations for each item that can pickup rather than use code to smooth the looking to maximize the visual of the game. But this idea may and could delay the develop of the game a bit, so the idea will leave to the end of the project when all the functionality completed, as the polishing part.