Hey i am trying to make a game whis a breaking like in the game booga booga where you can
break for exemple a tree whis a pickaxe and when all the hp of the tree are remove the tree get removed and drop something whis a % of chance to drop .
I dont know how to do it and if you can help me to create it or teach me how to do it I would thank you .
So all you got to do is just make the pixaxe into a tool and then make it so if the tree is touched with the pixaxe then it will reduce the HP. You can store the HP in attributes inside the tree which I feel would be the best way to do this. When the tree is hit with the pixaxe reduce it untill it hits 0 or what ever then make it so that the tree is deleted and a part is dropped where the tree was.
You may want to also check that when the pixaxe hits the tree that the tool is currently being used just so that you donβt have people just being able to put the axe on the tree without having to click.
Not sure what you mean by a % but that may be done by the random thing.
Thats the basic idea of how you would do it you just now to script it.