Forum Discussion
JeniJohnson-6e1
14 days agoCommunity Member
Adding two variables together
I have a time variable that inputs a number (10 or 15 minutes) based on an object's state. I have a second-time variable that operates the same way for another object. Then I have a third variabl...
JudyNollet
14 days agoSuper Hero
As Ron mentioned, you need to reset the variable before adding to it.
Here's a good way to do that:
When either Total_Time or Total_Time2 changes, show a blank layer.
On that blank layer, have these triggers run when the timeline starts:
- Set calculation = 0
- Add Total_Time to calculation
- Add Total_Time2 to calculation
- Hide this layer [Note: you could also have this run when the timeline ends, and use a really short timeline.]