I'm creating a game where you can fight

so I need to make it to where when you click a button you lose hp on a linear progress but I want it to be a random number but from a specific series of number like it would do 10 dmg or 20 dmg but the 20 would be a critical so it would have lower chance of being a 20 but idk how to do that so if someone could show me the blocks or give me hints I would be thankful for that

image
You can set the 0.8 as you wish.

ok so I changed it a little so I got rid of the global stuff and added the linear progress thing and stuff ill show you the code do you think you could test it for me cause I don't have an android

Time for you to get an emulator

so the problem with that is I'm using my school laptop to test these apps and it isn't allowing it to work

What kind of laptop?

(Don't say black.)

2 Likes

im using a MacBook