playMaker

Author Topic: Debug advice needed  (Read 1963 times)

louismg

  • Playmaker Newbie
  • *
  • Posts: 13
Debug advice needed
« on: November 17, 2013, 11:01:17 PM »
My camera is controlled by 3 FSMs and it started shaking badly.  I am trying to understand why and it's not easy because:

1) I can't see the state labels of my 3 camera FSMs
2) I can't reproduce the problem on the computer and use the debugger because it is triggered by touch events on an iPad and the computer does not manage touch events.

Any advice on how I can easily output states and variables of different FSMs on the screen or simulate touch events within the development environment on the computer so I can use the debugger?

I thought I had seen how to force an event trigger (or put an FSM in a new state) somewhere while debugging but I can't figure it out.

Any advice welcome!

Louis

Yanifska

  • Full Member
  • ***
  • Posts: 163
    • My Portfolio
Re: Debug advice needed
« Reply #1 on: November 18, 2013, 01:32:27 AM »
Hi, are you using Unity Remote?
Visit my portfolio: http://www.yanivcahoua.com/

louismg

  • Playmaker Newbie
  • *
  • Posts: 13
Re: Debug advice needed
« Reply #2 on: November 18, 2013, 01:40:49 PM »
Thanks, that helped a lot. Wonder why I didn't think about it…  ???

Still, the touch events don't really fire "well" with the remote so it would be nice to be able to add an action to the camera for example and have it overlay debug data from any FSM on the screen in real time on the device without fussing around retrieving statuses and values, converting them to string and printing them.

Yanifska

  • Full Member
  • ***
  • Posts: 163
    • My Portfolio
Re: Debug advice needed
« Reply #3 on: November 20, 2013, 05:07:36 AM »
I don't remember having this kind of issue with the remote.
Do you check for touch remaining and touch moved as well ? some time it can be quite sensitive and will leave the begin state too early.
Visit my portfolio: http://www.yanivcahoua.com/