NOOO! I found a glitch in my game PLEASE HELP!

BramHoddssdBramHoddssd Member Posts: 414
edited November -1 in Working with GS (Mac)
In my game your only way of moving is by using your grapple hook (I used the demo by ORBZ). For each level you have a max number of swings you can take. It's suppose to be when you touch a block, you start grappling from it. Then when you release your finger, the grappling hook disappears, just like ORBZ demo. BUT i have it so when "touch is released" it changes the variable 'swings' to 'swings-1'. That works except when i touch the block then move my finger to the side so it's not touch the block then release it doesn't change the swing variable. I want it to work no matter where I release my touch, not only if it's still touching the block my guy was swinging from! And I can't make it change the variable when I first touch the block for reasons to hard to explain. I hope you can visualize what I just said and help me out.

Comments

  • DimensionGamesDimensionGames PRO Posts: 993
    Sorry I didn't understand that! Just out of interest what style of game is it?
  • FreiGamesFreiGames Member Posts: 158
    Just use the mouse functions instead, it will still work on IOS!
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    is your code only "touch is released" or "touch is released and touch is inside"?

    You could change your logic so it just says "while touch is released and touch is inside" set swings to SWINGVARIABLE

    OTHERWISE
    swing is false
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    If that doesn't work you could try using when touch count = 0
  • BramHoddssdBramHoddssd Member Posts: 414
    thnx guys i fixed it!
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    BramHoskin said:
    thnx guys i fixed it!

    What was the solution? I have a similar issue.
Sign In or Register to comment.