Measuring the time it takes to execute an action

hosoji

  • Posts: 15
Long story short, I need to measure the time it takes in milliseconds for an actor to switch animations (upon touch release) in a game I'm working on but I can't seem to get this working.

I found this old thread in the forums:
http://community.stencyl.com/index.php?topic=34802.0

Only I'm not advanced enough to figure out how to implement such a function on my own.
Would love some advice on this if possible.

 

SadiQ

  • Posts: 1795
Isn't that time hard coded to the value you can set in the Appearance tab of the actor definition?
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

hosoji

  • Posts: 15
It's not the animation time I'm looking for, it is the time it takes between lifting my finger off a button and the software recognizing this and switching the button to the 'untouched' animation. Basically how many milliseconds that process takes.

It seems insignificant but I'm trying to work around the iPhone's simultaneous touch point limitation (which i'm told is currently 5 for the older models) and this information is essential to my planned workaround.

Thanks

ETHproductions

  • *
  • Posts: 430
I devised a basic solution for this the other day, using the Date Extension. I've attached a screenshot below. It works quite well on Flash, but it may not work on Desktop or Mobile.
Fontstruct - Stencyl - Website (in progress)

Proud Member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

hosoji

  • Posts: 15
Hey, thanks for pointing me to this.
I just tested the extension on mobile and I tried out your solution.
The problem is it just increments from 0 to 1000 ms (2000, 3000 etc). I'm not able to get a measurement for anything below 1 sec in duration.