Found problem with control shooter template. Please read!!!

matthewsuttlesmatthewsuttles Member Posts: 42
edited April 2012 in Working with GS (Mac)
Hey everyone,
I was having trouble when controlling my game from the iPhone. Every time I touched a joystick control it would peg to a side even though I wasn't touching it there. After some debugging I found there was some code that was causing this. If you are having the same problem I offer the solution.

Go into the prototype joystick.

Find the code that states:

Rule: Touch 5
Actor receives event overlaps or collides with actor type "your actor"
set self.touchId to 5

Turn this rule off and it should no longer peg to a certain side when touched the wrong way.

Hope this helps anyone who is having trouble.

Answers

  • jckmcgrawjckmcgraw Member Posts: 647
    edited April 2012
    @matthewsuttles

    I wish I found this AGES ago!!! I have just made the change, and will have all of my testers look out for (hopefully) no "glitching" once and for all!

    Thank you!!
    Jack McGraw
  • matthewsuttlesmatthewsuttles Member Posts: 42
    No Problem, Just trying to help. I know this was very frustrating for me.
  • jckmcgrawjckmcgraw Member Posts: 647
    @matthewsuttles

    Bad news :( After having my testers use the joystick, it is still "glitching" out even with the actors' 5 touch removed!!! Anything that I might have missed?

    Thanks,
    Jack McGraw
  • matthewsuttlesmatthewsuttles Member Posts: 42
    This is what I suggest you do to debug.

    1.Make a new attribute for the game called Debug as an integer.

    2.Make a new actor called debug and place it on the scene that you use the thumb stick

    3.In thumbstick that is pegging. Constrain touch id to Debug Attribute.

    4.In debug actor place a display text and set the attribute to debug so that it will show the touch id when it pegs. It might not be 5 but it will give you an Idea of what is causing the error.
Sign In or Register to comment.