Here is my question:
I want to make a sprite that can be destroyed only when the player press the space bar AND colides with it. My objective is to make some rocks that are blocking the way and the character have to destroy them with his sword(pressing the space bar).i already have the character actions done(walking, attack, jump etc)
So the simple objective is when the character is not attacking the rock inorder to destroy it, the rock is blocking his way.
Also how can i make a group of 10 rocks,per exemple, to be destroyed individualy without creating 10 sprits for each rock?
Thank you very much