RPG/Stat Question
Hey Everyone,
So I started to make a game where you shoot and take away health from enemies. I wanted to be able to upgrade the damage you do so I was going to store that in the player actor. But Actors cant take info from eachother, so how would I take away the health from the enemy with a number that will be upgradable?
This is something like an RPG where I cant just specify a certain amount, the amounts will change when upgraded.
Could someone tell me how to accomplish this or even post a tutorial on Youtube so I could follow along?
So I started to make a game where you shoot and take away health from enemies. I wanted to be able to upgrade the damage you do so I was going to store that in the player actor. But Actors cant take info from eachother, so how would I take away the health from the enemy with a number that will be upgradable?
This is something like an RPG where I cant just specify a certain amount, the amounts will change when upgraded.
Could someone tell me how to accomplish this or even post a tutorial on Youtube so I could follow along?
Answers
There are many randomly spawned enemies of the same type, there is only 1 enemy health attribute. So how can I make all those spawned enemies use that 1 health attribute and not share it. Right now they share it and when one dies they all die for the rest of the game.
Okay so I think I have that down, but here is something I ran into.
I have a rule that if the enemy self.health is 0 it will get destroyed.
Before that I have a rule that says if the enemy actor collides with the bullet, then change self.health to self.Health-game.bullet
the self.health is 1000 and the bullet is 1000 right now for testing so it should destroy it in one hit, but its not doing anything, however it is colliding and the bullet is disappearing. So did I write the self.Health - game.bullet wrong or what happened?
Thank you for the help guys, I am just starting out with Game Salad. I may have some more questions soon!