Greetings, all.
I am, as you can guess, new here. I have used a few other authoring programs, and just recently stumbled across Construct. So far, I am very fond of it. The logic is rather different than I am used too, but the ease of use and performance is wonderful.
Anyway, to my newbie'ish questions:
Basically, I am having a difficult time using the Private Variables from one object in a calculation run by another object.
To give you an idea of what I mean:
I have a bullet object. This bullet object has a PV 'Damage'. This is the variable that records exactly how much damage this particular type of bullet does.
I, then, have an enemy object. This enemy object has a PV 'Health'. This, of course, determines how much "Damage" it can take before it is destroyed. All very standard, basic stuff.
What I am attempting to do is have a a collision event between enemy and bullet, where PV 'Health' is subtracted by the bullet's PV 'Damage'. I am sure there is an easy, intuitive way to do this, but I have not found it, yet.
I thought it would be easiest to use the "Subtract from private variable" action from the Enemy object, and put in Bullet.Damage as the amount subtracted. Of course, I get the error "The following variable: 'Bullet.Damage' of 'Enemy' is undefined. Would you like to define it?". I understand why. It is defined in the Bullet object... but not in the Enemy. The action is being run by the Enemy. The question is how do I get this to work?
And, no, just putting the Bullet object's damage as a # in the action will not work. Well... it will... but not the way I am looking for. How do I get one object to be able to use the Private Variables of another object in its actions?
Thank you, ahead of time, to all who take the time to answer. Greatly appreciated.