Have a look at this you could do something similar to this, but would need tweaking to your needs
Thank you I'll watch it once I have time to work on my game!