To be honest I still haven't solved it very effectively. My old solution didn't work that well.
Develop games in your browser. Powerful, performant & highly capable.
Start a timer when the touch starts, stop it when the touch ends. By 'timer', I mean a variable where you add dt every tick, since there's no object to which to apply the timer behavior.
Basically, you remake the drag behavior with an added 'speed limit'. I've attached a capx for you.
C2 is still pretty young, so there aren't many big projects out there that have actually been released. Super Ubie Land has, but I think the dev's main focus there is on the wii U. There are quite a few more in the works though!
This will give you problems if you wanted to have a main menu layout or some other layout without this stuff.
I usually just create my common stuff with events.
7Soul well it's not too hard once you know the formulas. I copied them off someone else in another thread
It's not too hard to make a function to convert back and forth from db and a scale system (e.g. 0-100).
Scale = 100 * 10 ^ (dB / 33.2)
dB = -log10(100 / Scale) * 33.2
You can do that, but you should just try to use dt properly in the first place since it will cause other problems.
Well if you're setting the global timescale to zero, it means you've forgotten to use dt somewhere if things are still happening.
Just put everything you don't want paused into a family, then set that family's timescale to 1 after you pause the game.
You may need to write your own 'push' function. I think C2's push function is only designed for 1D arrays.
To be honest I didn't know this existed at all
It would be nice to see some prominent links to places like this, the IRC Chat, etc on the site.
Member since 5 Sep, 2011