An enemy dies, a few coins fall out, and the player walks over them. In an action RPG, a roguelike or a survivors-like that happens hundreds of times, so small details add up. A drop that just appears feels flat, a coin you must step on exactly feels fussy, and a pickup sound that never changes gets tiring.
This guide follows one drop from the pop to the pickup sound. The GDScript ran in Godot 4.7.2 at the default 60 physics ticks per second, on a 16x16 gold coin from RPG Item Icons and a coin sound from Retro Sound Effects, and every number here comes from that run.
The pop: a hop, a bounce and a stop
In a top-down game, fake the height. The pickup's position is the spot on the floor where it lands, and its sprite is drawn above that spot, so gravity only changes a number and the drop needs no collision shape. The core of its _physics_process:
- vz -= GRAVITY * delta, then height += vz * delta and global_position += ground_vel * delta, with GRAVITY at 900.0.
- When height reaches 0: vz = -vz * BOUNCE, with BOUNCE at 0.45, and ground_vel *= 0.5. Once vz is under 30, the drop rests.
- sprite.position.y = -height, so the sprite hops while the node, and a shadow drawn at it, stays on the floor.
Thrown up at 200 px/s and sideways at 40 px/s, the coin rose 20.6 px, touched the floor on frame 26, bounced twice more and lay still on frame 41: 0.68 s after it spawned and 21.7 px from where it started. In a side-view game, a physics body on the level's collision gives the same up-then-bounce.

Spread a handful of drops around the enemy
Random angles alone clump: three coins can leave in nearly the same direction and land on top of each other. Split the circle evenly and add a little jitter to each angle:
- var angle := TAU * i / n + rng.randf_range(-0.3, 0.3)
- c.pop(Vector2.from_angle(angle), rng.randf_range(30.0, 60.0), rng.randf_range(160.0, 220.0))
Eight coins dropped this way were all resting within 0.75 s, between 15.6 and 30.2 px from the enemy, and no two were closer than 13.7 px, so they landed as a loose ring instead of one pile. Spawn them at the enemy's feet, not the top-left of its sprite, as in our guide to death animations for enemies.
A pickup radius and a magnet that speeds up
Use two distances: a magnet radius (48 px here, three 16 px tiles) where a drop starts flying to the player, and a collect radius (6 px) where it is taken. Only drops that have landed are pulled, so the player always sees what fell first. The pull:
- speed = minf(speed + magnet_accel * delta, magnet_max): 60 px/s at the start, plus 900 px/s every second, up to 600.
- global_position = global_position.move_toward(player.global_position, speed * delta)
- Within collect_radius of the player: emit collected, then queue_free().
The ramp matters. From 47 px away with the player standing still, the ramping coin arrived in 16 frames (0.27 s), while a constant 60 px/s took 42 frames (0.70 s). With the player running away at 100 px/s, the ramp still caught up in 22 frames. A constant 60 px/s never did (448 px behind after 600 frames), and a constant 120 px/s trailed the player for 125 frames. And move_toward never steps past its target, so even at 10 px a tick the drop can't overshoot.
Pull only what the player always wants: coins, experience, ammo, hearts. Equipment can wait for a button, so the player can walk past a worse sword. If an item can't be taken (inventory full, health already full), don't pull it at all. A drop that hugs the player and never goes in looks like a bug.
Rarity colours, a glint and a beam
Players read rarity by colour before they read a name: grey for common, green for uncommon, blue for rare, purple for epic and orange or gold for legendary. Use the same colours on the floor, in the inventory slot and in the tooltip; inventory item icons, tiers and rarity covers the slot side. Let the floor effect grow with the rarity:
- Common: nothing extra, so the rare drops stand out.
- Uncommon and up: a looping glint. The sparkle in Pixel VFX is an 8-frame loop at 12 fps in steel, nature, ice, arcane and holy, which come out grey, green, blue, purple and gold: the same ladder.
- Epic and legendary: a thin white beam standing up from the drop, tinted with modulate. Modulate multiplies, so white takes the rarity colour exactly (why modulate works that way).
- On pickup: the pack's pickup burst, 6 frames at 12 fps played once, in holy, ice, arcane, nature and blood. Blood suits hearts.
Don't tint the item icon itself. RPG Item Icons shows tiers as materials (iron, steel, gold, bronze, jade, crystal, obsidian and ember), and a blue tint on a gold sword reads as a different metal.

Stacks and despawn timers
A big fight can leave dozens of coins, each one a node. Merge them as they land: when a coin rests, it looks for a resting coin of the same item within 10 px, adds its amount to that one and frees itself. Over five random seeds, 20 coins thrown from one point became 9 to 13 drops, the total was always 20, and the largest stack held 3 or 4. RPG Item Icons has single coins (coin_copper, coin_silver, coin_gold) and piles (coins_copper, coins_silver, coins_gold), so a merged drop can switch to the pile icon.
Give drops a lifetime and warn before it ends. Ours lives 30 s and blinks for the last 5 with sprite.visible = int(age * 10.0) % 2 == 0, on and off every 0.1 s. Keep rare drops longer than coins.
The pickup sound: short, varied, rising
The coin sound plays more often than almost any other sound in a loot game, so keep it short and never quite the same:
- If the last pickup was at most 0.4 s ago, combo = mini(combo + 1, MAX_STEPS), with MAX_STEPS at 12. Otherwise combo = 0.
- At combo 0, p.pitch_scale = rng.randf_range(0.95, 1.05). Above it, p.pitch_scale = pow(2.0, combo / 12.0): one semitone per step.
- Play from a pool of 4 AudioStreamPlayers in turn. A single player cuts off its own sound on every play() (its max_polyphony is 1 by default), which chops a fast run.
The player ran at 150 px/s through 15 coins laid 10 px apart. A coin arrived every 4 frames, and the pitch went 1.025 (the random one), 1.059, 1.122 and on up to 2.000, an octave, on the 13th coin, where the cap held it. After a 40-frame pause the next coin played at 0.986.
Retro Sound Effects has 22 coin and pickup sounds (coin, gem, item, key, heart, ammo and purchase), each in an 8-bit and a 16-bit version; coin_05, the one we used, is 0.126 s long. If you'd rather not shift the pitch, combo_01 to combo_05 in its score group rise in 5 steps. For a rare drop, play a gem sound or the item get jingle instead of the coin, so the player hears the rarity before they look.

A count popup that adds up
A floating +1 for every coin turns a run of 15 coins into 15 overlapping labels. Keep one popup instead: a pickup that comes while it is on screen adds to its number and restarts its 0.6 s timer. In the run above, the 15 coins made one popup that read +15, and the coin after the pause started a new one at +1.
Checklist
- Drops hop and rest in under a second, spread around the enemy's feet.
- Only landed drops are pulled, by a magnet that ends up faster than the player.
- Currency comes by itself, gear waits for a button, and nothing is pulled that can't be taken.
- Rarity colours match on the floor, in the slot and in the tooltip; effects grow with rarity.
- Same items merge, and the rest blink before they go.
- The pickup sound varies and rises in a run, with one count popup that adds up.
Gridwright packs can be used in commercial games; you may not resell the files themselves. Packs released from October 28, 2026 ask for a credit: “Art by Gridwright” with a link (each pack’s LICENSE.txt says which applies). More in can I use game assets in a commercial game.
If your game needs its own loot icons or effects, you can order a custom pack.
