Need help - stupid question but I can't figure it out.

charlieaf92charlieaf92 Member Posts: 84
edited November -1 in Working with GS (Mac)
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

Comments

  • reddotincreddotinc Member Posts: 653
    Is there a reason why you have display text and the rules in the same actor? Is that what you are trying to do?

    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
  • charlieaf92charlieaf92 Member Posts: 84
    reddotinc said:
    Is there a reason why you have display text and the rules in the same actor? Is that what you are trying to do?

    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

    The displaytext is just an easy way for me to see if it is working. Regardless of what I try - I cannot get the attribute to change to 1 using the touch event. If I change it to mouse button down, it works fine.
  • charlieaf92charlieaf92 Member Posts: 84
    Ok... now I am convinced that this is a GameSalad bug. One of the buttons is now changing an unrelated variable.
  • iDeveloperziDeveloperz Member Posts: 1,169
    Drag the release rule in the other rule sugar pie. Maybe that'll work for you.
  • iDeveloperziDeveloperz Member Posts: 1,169
    IS IT THE FACT THAT ONE IS...

    SELF.KEYRIGHT

    AND ANOTHER IS...

    GAME.KEYRIGHT

    Sorry about the caps I only just noticed.
  • charlieaf92charlieaf92 Member Posts: 84
    iDeveloperz said:
    IS IT THE FACT THAT ONE IS...

    SELF.KEYRIGHT

    AND ANOTHER IS...

    GAME.KEYRIGHT

    Sorry about the caps I only just noticed.

    Good point - I missed that during all the various scenarios that I was testing. But that still doesn't explain why the variable is not changing to 1 with a click.

    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.
Sign In or Register to comment.