Touch on top of a touch?

DrGlickertDrGlickert Member Posts: 1,135
edited November -1 in Working with GS (Mac)
So my cannon fires when the player touches the screen. but I'd like to move around. Is there a way to "disable" the firing touch portion but only around a very specific small area to put some left/right controls?

Or, do I have to have a specific area for movement and a specific area for shooting?

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You could do some rules like

    if touch is pressed
    and game.touch1.y is greater than 50
    --FireCannon

    That would give you an area across the entire bottom of the screen for buttons that would not affect firing if touched
  • DrGlickertDrGlickert Member Posts: 1,135
    Nice work Tenrdrmer! Nice!!
Sign In or Register to comment.