[Solved] A quick (hopefully simple) question

jbishop122jbishop122 Member Posts: 43
edited November 2014 in Working with GS (Mac)

Is there a way to make something have a 5% chance of appearing? I want a certain jump scare to happen 5% of the time after you lose. Tell me if I need to clarify this

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    edited November 2014

    You could do a random integer and make it choose from 1-100 then if it's <6 do your scare.

    Make a game attribute call it scare and make it an integer, then when game is over change the game.scare attribute to random 1,100 then if scare is less than 6 do your special effect.

    Darren.

  • jbishop122jbishop122 Member Posts: 43

    @deepblueapps Thanks!

Sign In or Register to comment.