Pick Me Up
I spent a bit of time getting “grabbable” items in the game. I’m calling these doodads, which will cover any object the player can interact with, but that isn’t a collectible.
I tweaked the action button to work for a tap (melee), and a hold (grab). A doodad can be picked up with a hold, dropped with a tap and thrown if dropped with momentum.
Onion can’t hold things (no arms), so the object is dropped when switching characters.
There’s a fun, unintentional effect where the doodad can be thrown at an enemy, pushing the enemy through the map if it lands on top. The doodads also work with moving and disappearing platforms. I’m pretty happy with my collision system!
Although, I had a “game development is painful” moment tonight. There were some collision issues that took longer to resolve than they should have. Fortunately they were legitimate bugs that would’ve broken things down the track, so it’s good to iron them out now.
As you can see from the gif it’s not pretty at all, but it’s a good start!