I'm working on the first level of my game and I want to know how I can make the monster use a random attack on the player AND use the correct number of damage. Here is the data that I wrote for this part (I'm not including the whole code because the rest is useless):
Using a random variable in C++
I'm working on the first level of my game and I want to know how I can make the monster use a random attack on the player AND use the correct number of damage. Here is the data that I wrote for this part (I'm not including the whole code because the rest is useless):
Tell me if you need more of the code to answer this. Please help me with this.
Thank you! How can I implement this into my code? I looked stuff like this up but I don't want a random number, I'm looking for a random variable like
@19wintersp