Question by
Vikingknut · Sep 25, 2016 at 09:59 AM ·
buttonimagebeginnerpercentagechance
I want my button to give the player randomly 1 of 5 images after clicked. How do i do this?
I have 5 images and I want the button to give the player 1 of the 5 images. So that the 1st image has a 50% chance of appearing after button clicked, 2nd image has 30% chance of appearing after clicked, 3rd image has 10% chance of appearing after button clicked, 4th image has 7% chance of appearing after button clicked and the 5th image has 3% chance of appearing after button clicked.
Comment
Your answer
Follow this Question
Related Questions
Button Sprite Stretching 0 Answers
How to move images onto a canvas 0 Answers
how to change the background image of all the scenes on single click of a button? 0 Answers
How to resize an image, without affecting the size of the button? 0 Answers
Going back to MainMenu from other level. (Problem) 0 Answers