Back to Portfolio

Script for the heat-seeking pineapple. The projectile is first given an impulse towards the crosshair, as with all other projectiles, but after a short timer, it locks onto the nearest player and the _integrate_forces() function takes manual control over the object's physics, sending it towards the target.


Function for throwing most throwable items. If I were to remake this now, I would create a custom resource to store data such as the throw impulse, particle effects, how many items the player drops when hit by the projectile, and seperate nodes to store item-specific data (such as the pineapple's seeking behavior).