korbaach's Forum Posts

  • It works very well with Chrome ... but not with Firefox and IE 11. Do you know why?

    because load javascript file before htlm with ajax..if you load htlm with action

    everything works well..

    I created on my stage a textBox called "textBox".

    I would like to display the output in this textbox.

    Is it possible ?

    yes it's possible..you can copy selected text from plugin to c2 Textbox..

    or or even between two textbox in c2

    select2CopyPlugin.capx

    What does "innerHTML" match in the "test.js" file?

    i just copy script from link you post

    var quotearea = document.getElementById('quote')
    var output = document.getElementById('output')
    quotearea.addEventListener('mouseup', function(){
        if (this.selectionStart != this.selectionEnd){ // check the user has selected some text inside field
            var selectedtext = this.value.substring(this.selectionStart, this.selectionEnd)
            output.innerHTML = selectedtext
        }
    }, false)[/code:27674b0v]
  • I wanted to add a drivers and team standings into the app. Can I easily add the won points to the Drivers and Teams Array?

    Of course.. just give me some time to figure out the easiest way...probably another array or two

  • RaceArray.capx

    edit: ...fixed capx...I hope...

  • Nandynho thaks for the plugin!

    ..it's nice to have html,iframe, .js & .css,all together in just one plugin..

    one question..

    is it possible to load javascript file in runtime ?

    (let's say..On load completed)

    because if I Ajax to load html & I use Properties bar to load .js

    sometimes browser alert error...

    ********************************************************

    christ59

    selectCopy.capx

  • CustomScroll

  • I think this is a problem:

    NW.js Documentation

    [quote:257u1zqn]Using MP3 and H.264 codecs requires you to pay attention to the patent royalties and the license of the source code. Consult a lawyer if you do not understand the licensing constraints and using patented media formats in your application..

    ...

    Due to the license issue, the prebuilt binaries of NW.js doesn’t support proprietary codecs, like H.264. ..

    So you can’t play MP3/MP4 with <audio> and <video> tags with prebuilt NW.js. ...

  • on server you need php script:

    <?php
    
    $name=$_POST['username'];
    $txt = $_POST['data'];
    
    $myfile = fopen($name.".txt", "w") or die("Unable to open file!");
    
    fwrite($myfile, $txt);
    fclose($myfile);
    exit();
    ?>[/code:1gsclnj5]
    ************************************************
    
    [url=https://app.box.com/s/s67acajd4pmmb0e5od1v4o20ttfnvpmh]writeFilephp.capx[/url]
    
    ***********************************************
    
    [img="http://lookpic.com/O/i2/950/ki6ifuyF.png"]
    [img="http://lookpic.com/O/i2/1751/pqBGrAKj.png"]
    [img="https://media.giphy.com/media/3oz8xDXdCiNTX5SAJa/source.gif"]
  • why is it necessary to disable the physics and re-enable them after a delay?

    because Dude will fall down..

    just think as he have platform behavior..you have gravity..and gravity will not wait 0.1 second..

    Why/how does the collision polygon affect joints?

    gallows colision poligon will affect on head sprite(gonna push him)

    just think as solid a platform..

  • CMD2Test.capx

  • also on start disable dude Physics..wait 0.1...enable

  • fredriksthlm I'm far away from SQL-anything..

    but .. here's an idea..instead of timestamp fild use simple INT fild

    and in your save score php script add new variable

    $time=time()[/code:absbjous]
    
    now you're going to store [url=http://www.unixtimestamp.com/]Unix Timestamp[/url] to table
    
    [img="http://lookpic.com/O/i2/1857/l8KtVWyq.png"]
    
    ok...now in your get score php
    [code:absbjous]// Connect to server and select database.
    mysql_connect("$host", "$username", "$password")or die("cannot connect"); 
    mysql_select_db("$db_name")or die("cannot select DB");
    
    // Retrieve data from database 
    $sql="SELECT * FROM scores ORDER BY score DESC LIMIT 10";
    $result=mysql_query($sql);[/code:absbjous]
    
    you can add after [i]"mysql_select_db("$db_name")or die("cannot select DB");"[/i]
    
    [code:absbjous]$time = 0;
    $oneday = 86400;
    $days = $_POST['days'];
    
    if ($days > "0") { 
       $time=time()-( $oneday * $days);
    }
    // Retrieve data from database 
    $sql="SELECT * FROM scores  WHERE time>$time ORDER BY  score DESC LIMIT 10";
    $result=mysql_query($sql);[/code:absbjous]
    
    [img="https://media.giphy.com/media/3oriNQUBv7CaPkshWM/giphy.gif"]
    
    [url=https://app.box.com/s/kuj97nt7aea82krvp02rdapzoj9xwt9s]scoreDaysphp.capx[/url]
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • try

  • [quote:3q53lt20]this is exactly how it is written

    ""2"" : ""Tower",

    ""2"" : ""Tower"",