multiple actions for one actor in sequence
danshaw
Member Posts: 38
hey gang....
how would i differentiate between the 1st, second, third etc click on a actor? for example i have a "sword" actor that is in the scene...the first time i click on it, it goes into my inventory area. the second time i click on it, it becomes active. then if i click on something else it de activates...the problem i have is each time i click on it, all the rules for each action are activated....
is it just a matter of setting up a bunch of game attributes that register what "stage" the sword is in and using those to control the rule logic?
thanks
Dan
how would i differentiate between the 1st, second, third etc click on a actor? for example i have a "sword" actor that is in the scene...the first time i click on it, it goes into my inventory area. the second time i click on it, it becomes active. then if i click on something else it de activates...the problem i have is each time i click on it, all the rules for each action are activated....
is it just a matter of setting up a bunch of game attributes that register what "stage" the sword is in and using those to control the rule logic?
thanks
Dan
Best Answer
-
tatiang Posts: 11,949You could use position if you like, but I'd stick to a simple counter, self.status (integer) and just change it from 0 to 1 to 2.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User