rpmcnee's Forum Posts

  • 5 posts
  • looking to add system dialog functions for the following so they can be used:

    SysCnds.prototype.PickSiblings = function (obj)

    {

    if (!obj)

    return false;

    // Get the current sol

    var sol = obj.getCurrentSol();//return obj.solstack[obj.cur_sol];

    var instances = sol.getObjects();

    var select_all = sol.select_all;

    // Index out of range: condition false (no wraparound)

    if (instances.length != 1)

    return false;

    var inst = instances[0];

    cr.clearArray(sol.instances);//TRUNCATE ARRAY TO 0 LENGTH

    for (j = 0, lenj = sol.siblings.length; j < lenj; ++j)

    {

    if(sol.instances.length < lenj)

    sol.instances.push(inst.siblings[j]);//inst.siblings.siblings.push(inst);

    else

    sol.instances[j] = inst.siblings[j];//.getInstanceByIID(sol.instances[j].iid);

    }

    }

  • please note that "stop loop" does not work for "for each array element" task="hello" in the example.

    i have also found that "stop loop" doesnt always work for system loops either (a hard bug to find).

    best to have a variable to compare to for each loop so that code in the loop isnt called.

  • i have modified my system.js file to add a function but i cant find where to add code so that the function appears in the dialogs.

    I see the code for adding plugin functions but not for system objects. you help would be appreciated. thanks:)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • there must still be bugs in collision (at least when objects are using the "path" behavior. during testing, objects frequently stop multiple widths away from objects they have collided with.

  • Problem Description

    Projects dont open and all is work lost. this occurs even after the project has successfully been worked on for many days after many reboots.

    it seems like the program is trying to save to a temp folder and the files are deleted when the browser closes.

    Attach a Capx

    Description of Capx

    ____ Concise description of what this CapX does ____

    Steps to Reproduce Bug

    • Step 1
    • Step 2
    • Step 3 etc.

    Observed Result

    ____ What happens? ____

    Expected Result

    project and development files should never, ever be saved to a temp directory that can be deleted by a browser or the operating system.

    create a temp dir in the current working directory for the program.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    windows 7 sp1

    Construct 2 Version ID

    2.5 (construct2-r200-setup.exe)

  • 5 posts