Still struggling with on screen controls
cbowers428
Member Posts: 176
I posted a couple days ago about issues with my on screen controls. I have a character, left button, right button, and "no touch zone" actor. I also have a game text attribute called "controls". When left touch is pressed AND the text attribute reads "none", the text attribute is changed to "left" and the character goes left. When left touch is released, the text attribute is changed to "none" and the character stops moving. The same set up is for the right button (except text is changed to "right" instead of "left" of course). In my no touch zone actor (which surrounds the left and right buttons), I have rules that say when touch is inside, change text attribute to "none".
This is a problem because when touch is pressed in the left or right buttons and text attribute is "none", the character goes left. So basically the no touch zone doesn't change anything and my character doesn't stop moving. Does anybody have a solution to this issue?
This is a problem because when touch is pressed in the left or right buttons and text attribute is "none", the character goes left. So basically the no touch zone doesn't change anything and my character doesn't stop moving. Does anybody have a solution to this issue?
Comments
My first thought is for you to create another attribute called say NoZone and have the no zone touch trigger an attribute change and then on the left and right buttons add the condition to the rule say when attribute NoZone=0 and when touch is pressed and test attribute reads none. that way your NoZone attribute is overiding and controlling.
However I fear you have overlapping touch zones which might be an issue.
i think thats what you are trying to do.