Joannesalfa's Forum Posts

  • oppenheimer I'm sorry, i have no experience but it gave me error because it cannot convert float at line 0:13

    #ifdef GL_ES

    precision highp float;

    #endif

    uniform float p;

    uniform float amount;

    uniform float seed;

    uniform float lines;

    uniform lowp sampler2D sampleFront;

    float rand(vec2 co){

        return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);

    }

    void main( void ) {

    vec2 myPos = position;

    float y = floor(lines*myPos.y)/lines;

    float disf = 0.01*(cos(myPos.y*130.0+p*10.0)+sin(myPos.y*183.0+p*80.0));

    float parity = 0.0; if(mod(y*lines, 2.)>0.5) parity=1.; else parity=-1.;

    float a = smoothstep(0.0, 1.0, p);

    myPos.x = amount*a*(y*0.3+disf)+myPos.x+

            amount*0.5*parity*smoothstep(0.6, 0.65, p)*(sin(myPos.y*(12.0+40.0*seed))+smoothstep(0.64, 0.65, p));

    vec4 colorInput = texture2D( sampleFront, myPos );

    gl_FragColor = colorInput;

    }

  • We should insist to Ashley to add a special plugin to access Node-webkit API, we really need it.

    There are some threads are complaining to Node-webkit exporter won't work some functions than webkit browser offers

  • Hey Yann

    Is possible to convert from SVG lines to JSON and recreate the lines?

  • Here is basic idea

    http://dl.dropbox.com/u/76227787/headchopoff.capx

    You can use arrow keys to move the character and click any part like arms, legs and head.

    Not so dynamic style, i have another idea how to make it working for sprite animations, the helpers are invisible sprites to join their parts should work, i make another .capx when i get chance

  • Yeah, this is issue that Scirra doesn't add plugins to access Node-webkit API

  • Mipey,

    So I think spritefont is working with CocoonJS now. I've been working on a new project and without even thinking fired it up in the Cocoon launcher to test and boom, my spritefont was working. It's a smaller file 0-9 plus a $ and at 64pixels. But it's working.

    I'll keep testing.

    ArcadEd are you serious? i used spritefont on older version of CocoonJS, it didn't work.

  • (1) Touch plugin supports multi-touch

    (2) Touch has accelerometer expression where you can get values

    (3) It depends the resolution

    (4) Sometimes, maybe you try Chrome for Android, remember Web Audio isn't standarized yet.

    (5) Most browser for Android don't work with WebGL, except Firefox

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Not yet, there another solution you can use websocket but the latency isn't perfect, we have to wait when webRTC or something like that is released

  • If you use HTML format, simply copy <div id="c2canvasdiv"> to last </script> from exported HTML5 game.

    EDIT:

    Also use iFrame is recommended BluePhaze mentioned it.

  • R0J0hound That's the definitve solution what im looking.

    I was figuring out how to remove array, but you rushed it, it improved performance a lot! awesome work!

  • newt

    I know but Array can affect peformance too without collision check.

  • jayderyu

    Bejeweled doesn't use collision, use grid coordinates, it depends the logic, if the coordenates like A7, B4, C5 are empty as are destroyed, it generates blocks with push animation to move another coordenate.

    It's designed for performance without collisions if the instances are more than 50 in one layout, especially for mobiles.

  • oppenheimer

    Thanks for your advice, im going to modify my fx code when i get chance.

  • In my experience, the development of puzzle game using C2 was not as flexible or friendly for mobile depending on the number of collisions. It affects poor performance.

    This suggestion is very important to people think to use puzzle genre with C2, as currently is not advisable until Scirra should have a new official plugin.

    C2 and is good for making platforms, action, RTS, physical, adventure, special effects, etc.. but the puzzles are another story.

    The idea of ??plugin is not using the collisions so maintains good performance for many instances in mobiles. Also applies Grid movements and other options are necessary.

    This is a suggestion, please consider this suggestion would be useful to meet the needs of all users of C2.

    Thanks!

  • It's about work in progress, i like this idea, it would be implement if is possible, sometimes we forget what were scheduled to change the code.

    Add Comment-

                |Red

                |Yellow

                |Green