How to randomly cycle through assets on click?

Hi all,

I’m creating a bottom-up/galaga style shooter and want to be able to randomly cycle through multiple assets as bullets on click so that there is a diverse set of bullets instead of just one kind. Any ideas on this? Thanks so much!

1 Answer

1

Create a list of bullets, then on click use the Random class to grab a item from the list to instantiate.