Hello lads! I'm just wondering how to make it so when you right click the box, the box spawns a random sprite out of 5 is there any way of making it? because I know how to do it with animations but not as an individual sprites. I tried to search about it but didn't find anything what i was looking for... Thank you and Take care!
Develop games in your browser. Powerful, performant & highly capable.
Create different functions for each sprite you want to create, the use choose(function_1, function_2, etc..)