Need help - stupid question but I can't figure it out.
charlieaf92
Member Posts: 84
I cannot get actor receives event > touch > pressed to respond at all. Not with the mouse click, or on a device using a touch (iPhone). Right now I am just trying to change an attribute from 0 to 1. All of the code to change the attribute is correct, because if I change the event from 'touch' to mouse button > down it works correctly. Then, I switch it back to touch pressed (I've also tried inside and both inside and down combined) it won't respond at all. I've placed the actors in my HUD layer (on the top) but also tried putting them in my main scene layer with no luck.
Is there something really simple and stupid that I am missing? I've also tried creating new actors and repeating the process but I get the same results.
Any help would be greatly appreciated. I will try to post a screenshot as well.
Thanks
Charlie
Is there something really simple and stupid that I am missing? I've also tried creating new actors and repeating the process but I get the same results.
Any help would be greatly appreciated. I will try to post a screenshot as well.
Thanks
Charlie
Comments
For best practice your "when touch is released - change attr to 0" rule, just move the change attribute for that into the otherwise section of your first rule.
// Red Dot Inc
SELF.KEYRIGHT
AND ANOTHER IS...
GAME.KEYRIGHT
Sorry about the caps I only just noticed.
I just went to an earlier version of the project without the buttons and started from scratch with the same result. The touch event will not respond, but if I switch it to the mouse it will. Here is a screenshot
http://www.wohooirock.com/images/gs_screen.png
I am going to try re-installing gamesalad.