tnindie's Recent Forum Activity

  • Uk4dee   here a sample if you are interssed

    <img src="http://i42.tinypic.com/2yz0rj5.jpg" border="0" />

  • i think we should do a pool to see how many developer want more joint support

  • HELLO USE XDK AND crosswalk HERE THE TUTORIAL

    scirra.com/tutorials/809/how-to-export-to-android-with-crosswalk

  • I ALSO NEED IT TOO

  • Ashley hello i have a small problem about buying a licences could you please help me.

    my probleme is the folowing i live in third wold country were paypal is not accepted but i have a payza account where i can load money to pay a licences ,i can pay the promotion prices which is 79 $ but i can not pay the 119 $ licence because i am poor and the exchange rate of my local curency is very high (its the double <img src="smileys/smiley19.gif" border="0" align="middle" /> )

    i find out about the promotion very late so could you please help a poor indie developer .

    my request is could you accept payza or could you add more time so i can still buy it or any other solution <img src="smileys/smiley19.gif" border="0" align="middle" />

    thanks

  • delgado

    Thanks for the reply but my probleme is with the compiled apk the launcher works fine for me <img src="smileys/smiley1.gif" border="0" align="middle" />

    does any one know how to debug or to create a debug logs so i can find out what's causing it <img src="smileys/smiley5.gif" border="0" align="middle" />

  • R0J0hound

    i want to thank you for your effort but i puling the triger on the idea .

    its a work around the box2d prismatic joint which C2 does not support and cocoojs also.

    thanks again for your time and help <img src="smileys/smiley1.gif" border="0" align="middle" /> .

  • hello my android game work on launcher fine no error but when i compile the APK using ludei cloud service and install it in the device it's stuck at the ludei logo and flickrs.

    i tried a simple project just 2 sprite with physics and drag behaviors the same problem

    please help .

    its works fine in the launcher and it run at 60fps on my android 4 tablet but the APK does not work .any suggestion

    does any one had a similar probleme

    the APK

    dl-web.dropbox.com/get/test.apk

  • R0J0hound

    first thanks you very much for your time to set up an example for me realy appreciate it <img src="smileys/smiley20.gif" border="0" align="middle" />

    second i want to ask How could i limit the spring movement at certain angle example it move only in 45 degres

    i just could not find the formula <img src="smileys/smiley11.gif" border="0" align="middle" />.

    when i set the "spring_angle" to constant it became out of control.

  • hello everybody i need your help i want to make a spring using physics i am not looking to fake it just a simple spring

    any help or suggestion is more than welcome <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Javascript-SDK help

    Hello everybody hope you are alright <img src="smileys/smiley1.gif" border="0" align="middle" />

    I want to ask for a clean simple explanation

    how can i implement this simple java-script example into C2

    example link :

    <font color=orange>http://burakkanber.com/blog/physics-in-javascript-car-suspension-part-1-spring-mass-damper/</font>

    /* Spring stiffness, in kg / s^2 */
    var k = -20;
    var spring_length = 180;
    
    /* Damping constant, in kg / s */
    var b = -0.5;
    
    /* Block position and velocity. */
    var block = {x: 100, v: 0, mass: 0.5};
    var wall  = {x: 30,  lx: 30, v: 0, t: 0, frequency: 0};
    
    var frameRate  = 1/30;
    var frameDelay = frameRate * 1000;
    
    var canvas;
    var ctx;
    var width  = 400;
    var height = 200;
    
    var loop = function() {
    
        /* Move the wall. */
        wall.t += frameRate;
        wall.lx = wall.x;
        wall.x = 30 + 70 * Math.sin(2 * Math.PI * wall.frequency * wall.t);
        wall.v = (wall.x - wall.lx) / frameRate;
    
        /* Move the block. */
    
        if ( ! mouse.isDown )
        {
            var F_spring = k * ( (block.x - wall.x) - spring_length );
            var F_damper = b * ( block.v - wall.v );
    
            var a = ( F_spring + F_damper ) / block.mass;
            block.v += a * frameRate;
            block.x += block.v * frameRate;
        }
    
        /* Drawing */
        ctx.clearRect(0, 0, width, height);
    
        ctx.save();
    
        for (x = wall.x; x < block.x; x += 20)
        {
            ctx.strokeStyle = 'blue';
            ctx.beginPath();
            ctx.moveTo(x, height / 2 - 10);
            ctx.lineTo(x + 10, height / 2);
            ctx.lineTo(x + 20, height / 2 - 10);
            ctx.stroke();
            ctx.closePath();
    
        }
        ctx.strokeStyle = 'red';
        ctx.beginPath();
        ctx.moveTo(0, height / 2 + 10);
        ctx.lineTo(block.x, height / 2 + 10);
        ctx.stroke();
        ctx.closePath();
    
        ctx.fillStyle = '#CCCCCC';
        ctx.fillRect(0, 0, wall.x, height);
        
        ctx.fillStyle = 'black';
        ctx.fillRect(block.x, height - (height / 2 + 25), 50, 50);
    
        ctx.restore();
    
    };
    
    var setup = function() {
        canvas = document.getElementById('canvas');
        ctx = canvas.getContext('2d');
    
        canvas.onmousemove = getMousePosition;
    
        canvas.onmousedown = function(e) {
            if (e.which == 1) {
                getMousePosition(e);
                mouse.isDown = true;
                block.x = mouse.x - 25;
            }
        };
    
        canvas.onmouseup = function(e) { 
            if (e.which == 1) {
                mouse.isDown = false;
            }
        };
    
        document.getElementById('k_slider').onchange = function() {
            this.innerHTML = this.value;
            k = -1 * parseInt(this.value);
            document.getElementById('k_slider_label').innerHTML = k;
        };
    
        document.getElementById('b_slider').onchange = function() {
            this.innerHTML = this.value;
            b = -1 * parseFloat(this.value);
            document.getElementById('b_slider_label').innerHTML = b;
        };
    
        document.getElementById('f_slider').onchange = function() {
            this.innerHTML = this.value;
            wall.frequency = parseFloat(this.value);
            document.getElementById('f_slider_label').innerHTML = wall.frequency;
        };
    
        document.getElementById('m_slider').onchange = function() {
            this.innerHTML = this.value;
            block.mass = parseFloat(this.value);
            document.getElementById('m_slider_label').innerHTML = block.mass;
        };
    
        
    
        setInterval(loop, frameDelay);
    };
    
    var mouse = {x: 0, y: 0, isDown: false};
    
    var getMousePosition = function(e) {
        mouse.x = e.pageX - canvas.offsetLeft;
        if (mouse.isDown)
        {
            block.x = mouse.x - 25;
        }
    };
    
    setup();
    

    <font size="2">My goal is to make a physics Box2D spring behaviours</font>

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • thumb up <img src="smileys/smiley20.gif" border="0" align="middle" />

tnindie's avatar

tnindie

Member since 23 Aug, 2013

None one is following tnindie yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies