sanitar's Forum Posts

  • good afternoon. my game through ajax communicates with the server. the server has an Access-Control-Allow-Origin policy: *

    I exported the project and checked it on the local server, it exchanges data with the remote server, everything works. I build a project for android-ajax does not work with the remote server. I checked it in the android studio, and got this error in the logs: "[Construct 3] AJAX request to 'http: // ********' (tag 'Check_connect') failed: "

    checked permissions by adding code like this:

    var permissions = cordova.plugins.permissions;
    permissions.checkPermission(permissions.INTERNET, function( status ){
     if ( status.hasPermission ) {
     console.log("Yes :D ");
     }
     else {
     console.warn("No :( ");
    	permissions.requestPermission(permissions.INTERNET, PremmSuccess, PremmError);
     }
    });
    function PremmError() {
    	//alert('NO');
    }
    
    function PremmSuccess( status ) {
    	if( !status.hasPermission ) PremmError();
    }

    I get "Yes: D" in the logs. What could be the problem?

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • well,don't code at night)))

    runtime.goToLayout("Layout 2");
    
  • need something like this

    runtime.getLayout("Layout 2").isVisible=true;

    but can't find right method in documentation

    Tagged:

  • hmmmm,that's good idea!i'll try it,thank's.

  • i need to make a dropdown list with styled button like this

    at this picture the drop button maked by just button.by clicked on it i can't open list container.

    if i use the native list button-it's look like this

    so,is there any ideas,how style the list button,or how call the list drop down when i click on usual button?

    Tagged:

  • I mean which tool allows you to do this

  • I need to make a grading table with variable width (2-6) and fill in the data at runtime.

    table view should be like this

    how can i do this?

  • holy molly,where was my eyes????

    thank you.

  • when i use

    runtime.layout.getLayer("Layer 1").isVisible="true";
    runtime.layout.getLayer("Layer 2").isVisible="false";

    the layer 1 are show,but layer 2 not hide,still shown.what's going wrong?

    Tagged:

  • well,it's done)))

    if someone will search the solution-it's doing like this

    runtime.objects.Button2.getFirstInstance().isEnabled=false;

    rtfm.

  • hi!how can i change enabling by js?

    i type

    runtime.objects.Button2
    

    but I don't know what's next.