terrorfall's Recent Forum Activity

  • Hi jobel, this option has been set, but doesn't appear to make a difference to the timer

  • Hi all,

    I have set the global project properties to not pause on unfocus, however, when I open a new tab in the browser window (part of the game to search a website for clues), the game timer stops until the window is focused again.

    I know this is the way JS timers work outside of Construct, just wondering if there is a way around this?

    Thanks

  • Problem solved! Thanks so much.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi all,

    Pretty sure I've read every article, forum post and Stack Overflow piece regarding this problem, so you're my last hope!

    I'm trying to pull back some user data using the AJAX plugin, when I make the request through the Chrome extension Postman, I get the correct data back, but through the Construct debug view, I'm seeing all the signs of a cross-domain problem.

    Within the PHP file on the server (using the Codeigniter framework, if that makes a difference) I have the following headers set

    header('Access-Control-Allow-Origin: *');
    header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS');
    header('Access-Control-Max-Age: 1000');
    header('Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With');
    header('Content-type: application/json');[/code:xls7b6dq] 
    
    I have even gone as far as to create a php file that just outputs the array statically, with those headers set. Nothing I do seems to work. Alerting the AJAX.LastData produces a blank box and I get the following console error on both Chrome and Firefox...
    
    [img="http://s2.postimg.org/50pewwd95/Capture1.png"]
    
    Here is the event sheet (.capx is absolutely massive!)
    
    [img="http://s17.postimg.org/s8jsgnb3j/Capture2.png"] 
    
    I've even gone as far as trying to set the request headers in the event sheet as a last act of desperation!
    
    The output of the array is as follows
    
    [code:xls7b6dq]{
        "c2array": true,
        "size": [
            1,
            5,
            1
        ],
        "data": [
            "50",
            "test",
            "1",
            "4442da43afe442558e6d28fdc68c4a8d",
            1429718276
        ]
    }[/code:xls7b6dq]
    
    Any help would be greatly appreciated.
    
    Thanks
terrorfall's avatar

terrorfall

Member since 4 Mar, 2015

None one is following terrorfall yet!

Connect with terrorfall

Trophy Case

  • 9-Year Club

Progress

9/44
How to earn trophies