plattysoft / Leonids

A Particle System for standard Android UI: http://plattysoft.github.io/Leonids/
Apache License 2.0
2.28k stars 398 forks source link

question: is there a way to capture clicks on the falling objects #86

Closed letitfly closed 6 years ago

letitfly commented 6 years ago

I am trying to rain gifts down from the sky and let the user click on the gift to claim it. The question is how to achieve that using ParticalSystem.

Thanks in advance!

plattysoft commented 6 years ago

Particles are designed so they are simple and the user does not interact with them, you want to create items that are interactive that are created in a similar -pseudo random- way as particles, but fundamentally they are not particles.

Take a look at the code of this other project to see somthing similar to what you want: https://github.com/plattysoft/BalloonsGame

Note: The project is a bit complex and uses an engine that I describe how to build on the book: Mastering Andorid Game Development

You can probably use the module as an engine and do the gifts, but as I said, particles are not meant to be interactive.