• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Item falls after breaking an object

1tsmey0sh1

Member
So I have an object for example a tree i want it to drop a fruit after breaking it but i dont want every single tree to drop a fruit i want it to have a 50% chance of dropping a fruit and a 50% chance of it not dropping a fruit. But idk how to code this and i cant find a tutorial showing me how to do it.
 
Top