Hello, I was wondering how the best way to make a spear like Terraria would be to implement into my game. I made this small example using animations with the image point changing each frame to make it move. It works sort of like stop-motion animation. Is this the most effective way to achieve this?
If possible I would want it to be only one frame and just set angle toward mouse and move forward at that angle for x amount of seconds and then come back. I attempted this with timers, but couldn't figure out how to make it stay in the player's hand but with the offset of it's movement.
Any help would be greatly appreciated,
Give me a Pixel