Spock's Forum Posts

  • Solved:

    Turns out I had a placeholder browser URL action that had an incomplete URL and for whatever reason it was being fired prematurely. removed it, and everything is back to normal.

  • Anyone? I first thought it was because I did not have an SSL secure server. I now have upgraded to one and have https... same issue. I see the game for a second and then it redirects to:

    This site can’t be reached

    0.0.0.0 refused to connect.

    This only happens to new games exported from Construct 3. All construct 2 games work correctly. As well only happens when I use touch or browser. If I make a blank C3 project with just a text box. It works.

  • Have an issue with Construct 3. Game loads and a second later it redirects to 0.0.0.0 This only happens from new exported games. My old games from Construct 2 run correctly. Any idea?

    This site can’t be reached

    0.0.0.0 refused to connect.

    Try:

    Checking the connection

    ERR_CONNECTION_REFUSED

    Also, I have tested this on (3) Computers, (2) different Internet Connections and (1) Mobile Phone. All have the same issue. I see the game for a second and then back to 0.0.0.0.

  • Not using any 3rd party addon's/plugins/behaviors. Also don't have access to the minified version at the moment. As well, not using any physics...

  • I had the same issue when I moved to C3. To solve this problem I did this:

    1. Set Fullscreen-Scale to (OFF)

    2. Insert (Browser)

    3. Create an event on Browser Resize

    4. Create an Action (Browser > Execute Javascript) set global variables to height/width as seen below.

    Then, in the index.html I added this tiny function

    <script type="text/javascript">
    var browser_h = 0;
    var browser_w = 0;
    
    function browser_s() {
        browser_w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
        browser_h = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
    }
    
    browser_s()
    </script>[/code:3rnf890w]
    
    You now have, fullscreen that is cropped.
  • I have a similar issue as well. Game exports however it shows up as a blank page. I just minifiy the runtime with a 3rd party app.

  • (Retina? Why are double DP/PX sprites messed up?)

    Hello,

    I need to have retina assets for retina and 4k resolutions. Anytime my sprite is scaled smaller than its original size I get artifacting and lines around the edges. Even if I make an 88x88 asset and scale it down to 44x44 it looks like this:

    I never had this issue with CSS/HTML so I am confused. This is happening for every single sprite that is scaled larger or smaller than its original 1:1 dimension.

    Also, on mac, pc...

  • Hello

    Can we replace the 9-patch image? Either sprite or file chooser? As well, how about angle/rotate? 9-Patch is VERY important however it has very limited control...

    Anyway way to improve this? 3rd Party Addon?

  • I was able to get it to reload the json by adding a request URL to Button2 and removed the fileChooser On Changed event.

    Tag "save"  -  >  FileChooser.FileURLAt(0) 
    [/code:3sagmn5u]
    
    [img="http://jean-luc-picard.com/public/events.jpg"]
  • You are amazing! This is so helpful, thank you so much! This will help a lot of people!

    (One question, in my case it only works once. Meaning if I make new changes to the blocks and load the .json that I saved it wont update the blocks.)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Also for Mac. In order for it to work I would need the app to be certified. Or are we able to get around this? As well, are we able to push updates when the user is connected to the internet.

    I guess I will get an iOS developer account to code sign the desktop app. 1st time doing that, so time to learn something new.

  • Hello,

    I am working on an a web app that uses the Save Function. And LocalStorage.

    I must be able to share this saved slot. I know LocalStorage uses Json. But I am struggling on figuring out how I can download the saved data, share it, then have another computer load it.

    The sad part is, if I cant get this feature I have no choice but to kill the project. So any help will be wonderful.

    (Basically, the requirement I have... User must be able to move save slots from computer-to-computer. )

  • In C2 I was able to set the Font "Style" or Webfont "Style" dynamically with a variable. However now in C3, setting the Font Face the "Style" is a drop down so I am unable to use a variable. Am I missing something?

  • Hello,

    In C2 I was able to set the Font "Style" or Webfont "Style" dynamically with a variable. However now in C3, setting the Font Face the "Style" is a drop down so I am unable to use a variable. Am I missing something?

    ( I just realized I posted this under the SDK and not the correct section! )

  • Hello,

    In C2 I was able to set the Font "Style" or Webfont "Style" dynamically with a variable. However now in C3, setting the Font Face the "Style" is a drop down so I am unable to use a variable. Am I missing something?