attribute with animation
tarsiustudio
Member Posts: 130
I'm going crazy with this problem and most likely have an easy solution but it took 2 days trying to do and not how.
I have 2 actors. Actor 1 follows actuator 2 (Hero), and I want to get one actor to another actor collide make an animation in the actuator 2. What I have done is create a boolean attribute called animation in game and say that when actor collides with one other actor change the attribute to true. Then the actuator 2 add a rule that if the animation attribute is true then do the animation and then change the animation attribute to false. What I get is that the animation is met only once and no more. Forgive my English, I hope you have understood me well and have if you can help me. thank you very much
I have 2 actors. Actor 1 follows actuator 2 (Hero), and I want to get one actor to another actor collide make an animation in the actuator 2. What I have done is create a boolean attribute called animation in game and say that when actor collides with one other actor change the attribute to true. Then the actuator 2 add a rule that if the animation attribute is true then do the animation and then change the animation attribute to false. What I get is that the animation is met only once and no more. Forgive my English, I hope you have understood me well and have if you can help me. thank you very much
Comments
If that doesn't do the trick, consider posting a screenshot of your rules here.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Tell me how to send pictures and send you here as he did and did not work and now me as I do and it works with the timer. While I work and I would like to learn why not work with the rule I put above.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Use this tag:
The result is below. Change the URL between the quotes for your own image.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I put this image in the rule that if the actor playing the actor boca animation change the attribute to true
in this other picture I put the rule that if the attribute is true then do the animation and then change the attribute to false.
This is what does not work and I've put a Timer in this actor and have since 0.5 seconds after making the animation and change the attribute to false and so if I work. You see something strange?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User