How to make probability game?

WeiyuWeiyu Member Posts: 216

Hello everyone, I want to know how to make a probability game?

For example, when I touch the button, the button will spawned a actor.

The actor may be "A", may be "B", or may be "C".

And A's probability is 60%, B's probability is 30%, C's probability is 10%.

Does Gamelsalad can do it? Thank you.

Comments

  • SocksSocks London, UK.Member Posts: 12,822

    When touch is pressed
    -Change X to random(1,10)
    --When X = 1
    ---Spawn C
    --Otherwise
    ---When X > 4
    ----Spawn A
    ---Otherwise
    ----Spawn B

Sign In or Register to comment.