Touch released issue

richiconrichicon Member, PRO Posts: 55
I have an issue with touch & mouse inside - i can't seem to fix it so wondering if it is a GameSalad bug.

Basically my menu buttons scale up and down when you touch them.

I then have a condition that shrinks the button to their original size on any of the following conditions:

Touch Outside
Touch Released
Mouse Outside

Yet it only seems to work in you re-touch the screen away from the buttons. i.e. if you take your finger off the screen it isn't registering as touch/mouse outside or released.

Comments

  • ShmirlyWhirlShmirlyWhirl Member Posts: 189
    Take out when the mouse posistion is inside. I'm fairly confident it still keeps track of the mouse posistion when you aren't touching it.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Why do you even need all that? Those conditions are unneeded if you only want it to grow on touch and not mouse over. Remember the more conditions in a rule the bulkier your code is and that isn't good for frame rate.

    Rule
    When touch is pressed

    Grow code

    Otherwise

    Shrink code
Sign In or Register to comment.