Dear community,
I am working on a gory 2D sprite based hack and slash sidescroller. I already figured out how to paint wails / ceilings / floors with blood texture and how to implement blood particles.
One thing I can't get my mind around is how I would achieve something like throwing a spear which collides with the enemy, sticks where it hit the enemy sprite and once the enemy dies can be collected by the player again.
This is basically two problems in one:
- How to have items with physics that the player can hold, throw and collect (swords, flashbangs, spears, arrows, whatever)
- How to make something attach to an enemy sprite
I am happy about any suggestion where to look for a solution or which tutorial to watch.