I want to create a magnet power to collect my coins.
The basic idea is to know which coins are in a certain radius and move them to the player.
To know which coins are in a radius, there a few options:
- Make a giant sphere collision that follows the player (easy to implement, not very optimized)
- Use a multi shape trace (you can even use a coin-specific channel) to identify the coins
To make the coin move to the player, you can simply add a timeline that animates an Alpha values.
The alpha value should control a Lerp (Linear Interpolation) that goes from the original coin location to the current (updating) player location.
Hope that helps. If there are any specifics problem you encounter let me know.