Selectable and unselectable item
keekee312
Member Posts: 91
Hi, I have a hard time doing what I want.
I have squares with numbers. When I click on one (on 2 for instance) I want my ValueSelected to +2 (that is ok). Because it's selected, I change attribute self.touched to true and change it's alpha color to 0,1 to make it become grey (to see that it's selected) Then if I click on it again, It becomes normal and change ValueSelected to -2 and alpha color to 1. EVERYTHING is ok but....
Now I have a Result attribute, when my ValueSelected = Result, those selected actors are destroyed (that is ok) but when ValueSelected is greater than the result, I want them to become normal back but the issue is that only the last one I clicked stays grey (in fact I think it becomes normal for a few milli seconds then becomes grey back) My rules aren't set in the right way, I know it but I got a lot of conditions for it and timers to make the rest work well and it becomes very heavy for nothing..
So I'm asking you to help me setting the good attributes I need at the wrong place etc..
Thank you very much
I have squares with numbers. When I click on one (on 2 for instance) I want my ValueSelected to +2 (that is ok). Because it's selected, I change attribute self.touched to true and change it's alpha color to 0,1 to make it become grey (to see that it's selected) Then if I click on it again, It becomes normal and change ValueSelected to -2 and alpha color to 1. EVERYTHING is ok but....
Now I have a Result attribute, when my ValueSelected = Result, those selected actors are destroyed (that is ok) but when ValueSelected is greater than the result, I want them to become normal back but the issue is that only the last one I clicked stays grey (in fact I think it becomes normal for a few milli seconds then becomes grey back) My rules aren't set in the right way, I know it but I got a lot of conditions for it and timers to make the rest work well and it becomes very heavy for nothing..
So I'm asking you to help me setting the good attributes I need at the wrong place etc..
Thank you very much
Comments