suntemple's Recent Forum Activity

  • Hi Sushin, I tried it on a tablet but the controls are obviously for desktop/laptop. Still I got to the story with taps It wouldn't let me past that (even after the story rolled out).

    Could you please tell me which ads did you use? They displayed just fine on an android tablet.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Ah man, Kongregate won't let me play on a tablet. But I bet it's possible

  • Tested on samsung galaxy tab 2. Plays fine, performance is smooth.

    BTW why did you use URL shortener for the play store link?

  • I use multiple event sheets even when it's smaller than 200 events. It helps organize the code and allows event sheet reuse

  • Thanks man, very useful info! And very encouraging to know how effectively can one promote his games by himself.

  • Okay, makes sense then, thanks for clarification

  • Hi Lunarray,

    Thanks for your wonderful behavior.

    I was interested in the elastic easing function to tweak it a little. After going through the forest of it's code:

        var s=1.70158;var p=0;var a=c;
        if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
        if (a < Math.abs(c)) { a=c; var s=p/4; }
        else var s = p/(2*Math.PI) * Math.asin (c/a);
        return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;[/code:1n2fi5sz]
    
    It turned out it could be simplified as this:
    
    [code:1n2fi5sz]    if (t==0) return b;  if ((t/=d)==1) return b+c;
        return c * Math.pow(2,-10*t) * Math.sin( (t*3-0.25)*2*Math.PI ) + c + b;[/code:1n2fi5sz]
    
    It's also possible to do just this:
    [code:1n2fi5sz]     t /= d;
         return c * Math.pow(2,-10*t) * Math.sin( (t*3-0.25)*2*Math.PI ) + c + b;[/code:1n2fi5sz]
    
    but then it will be a little off at t == d ( around 0.1% )
    
    All these conditions and extra vars are either someone's joke or the result of JS obfuscation/deobfuscation.
suntemple's avatar

suntemple

Member since 28 Jan, 2014

None one is following suntemple yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies