[Solved] Adding together of attributes
bubblegmkd
Member Posts: 12
I'm trying to add three attributes together to get a total ..... distance modifier + speed modifier + to hit modifier = modifier total. I've tried change attribute, but that's not working wondering what I'm missing.
Comments
Are you selecting all four attributes from the Attribute Browser drop-down menu? Typing their names in won't work.
How do you know it's not working? What are you seeing? What happens when you use a single attribute? Two attributes (e.g. distance modifier + speed modifier)?
Are you using a Display Text behavior that is not inside a rule to test this? If not, what happens when you do?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I am selecting all four from drop down menu. I'm using display text to see results and using input text on the first three modifiers to input an integer. Whether I use a single or two or three I'm not getting any value change in the modifier total it just stays at 0. It's not in a rule....what rule do you suggest to place in?
Can you post a link to download the project file (compress it as a .zip file and upload it to a file-sharing site first)?
If you're using Display Text, you don't need a rule/condition. My guess is there's a problem with your Keyboard Input behaviors. What happens if you manually set the value of the three attributes before previewing the scene? Do you see the correct sum?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
When I manually set I do correct sum.
Well then your culprit is Keyboard Input.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
here is the project
Sorry didn't attach
Figured it out....should have been using "constrain attribute" behavior