TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Measuring the time it takes to execute an action
Pages:
1
Measuring the time it takes to execute an action
hosoji
Posts: 15
March 09, 2015, 05:18:43 am
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
March 09, 2015, 06:12:25 am
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
March 09, 2015, 06:19:05 am
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
March 09, 2015, 08:02:32 am
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
March 09, 2015, 10:52:46 am
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.
Pages:
1