- Code: Select all
if (tech1==1)
{
p2hpbar-(2*p1atk/p2def);
DestroyActor("Event Actor");
}
Now for some reason, p2hpbar doesn't change when the actor collides with the enemy. Any solutions or tips? This is key to my game.
if (tech1==1)
{
p2hpbar-(2*p1atk/p2def);
DestroyActor("Event Actor");
}
if (tech1==1)
{
p2hpbar-=(2*p1atk/p2def);
DestroyActor("Event Actor");
}
if (tech1==1)
{
p2hpbar-=(2*p1atk/p2def); //you have to use -=
DestroyActor("Event Actor");
}
code4242 wrote:Oh! I see! Thanks. I'd have thought that I would have tried something like that, but apparently not. Thanks again!
So, just a question, what is it actually trying to do the way I have it set up? It's not sending me an error.
lcl wrote:code4242 wrote:
Well, it's not doing anything. Because that is just calculation, but you're not setting anything have the value of that calculation.
Users browsing this forum: No registered users and 1 guest