Report this content
We want the Dreams coMmunity to be a safe, diverse and tolerant place for everyone, no matter their age, gender, race, sexual orientation or otherwise. If you believe this content to contradict these principles, you can file a report for our coMmunity teams to investigate.
Note that misuse of the reporting tool will not be tolerated.Item being reported:
There are a few pickups out there that do this. I'd recommend opening one of them up to see how they work.
The way I would go about it is this: add a trigger zone on the player to detect pickups within range. Make it detect am "in range" tag on the pickup. The tag will send a signal when it's detected.
Add a tag to the player where you want the pickup to float towards. Add a follower gadget to the pickup with that tag as the target, and adjust the settings for speed, etc.
When the "in range" tag is detected, the pickup is in range. Hook that up to a counter, so it remembers it was in range. Hook the counter up to power the follower tag.
So now, when the pickup is in range of the player, it will be set as being attracted to the player, and will move towards the player.
Make the pickup only collide with the player by setting it to only collide with "Friendly." Now add an impact detector gadget to the pickup to detect when it hits the player. Hook that up to whatever effects you want to happen--including a destroy, sound effects, or a timeline.