Spock's Recent Forum Activity

  • Hello,

    Having issues with Microsoft Edge. File Download Menu Will Not Open but Upload will.

    Invoke Download (CanvasSnapshot) as well AJAX FileChooser (FileChooser.FileURLAt(0)) will not open the File Menu.

    The only thing I get in console is: HTML1300: Navigation occurred then the packet for the item being downloaded. PNG data and JSON data (I have 2 download functions that trigger independantly, not at the same time.)

    HTML1300 "Navigation occurred" A new page was navigated to, or the current page was refreshed. This is an informational message and not an error.

    It looks like the file attempted to download. I can see the json data and png data. But the menu never opens.

    However, my "Upload File" is working and opening...

    Anyone have an idea why? Chrome, FF all work correctly.

  • For Example, I created a sprite when the PathFinding starts. "-1" is where the Arrow started. However, no line was created and "0" is where it starts.

    It Should start at -1 not 0

    Screenshot: s22.postimg.cc/ybgipix41/line.jpg

  • This is perfect, thank you. I was about to upload a modified version of the Path Finder tutorial that I was working on. But your example works much better than what I created.

    Thank you!

    PS. One thing I noticed, sometimes the Start Node is not the same as its last current location. Meaning, when you click, it will start the node in a different location rather than where the current "Green" arrow is positioned.

  • Hello,

    I am trying to figure out how to draw a line with Path finding. Currently I draw a line that snaps on a grid, however I need to automatically avoid chosen obstacles. (RED BLOCK is an obstacle.)

    Example:

    https://s22.postimg.cc/5u2v08ve9/path.jpg

  • Solved:

    1. Create an empty <div> that spans and covers the entire game.

    2. Via CSS set

    html, body, canvas {

    touch-action: auto;

    }

    If you are also using "touch-action-delay: none;" comment it out.

  • Try Construct 3

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

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

    "Can't scroll page after interacting with canvas on touch screen"

    My game lives in a <div> that on load fills the screen and I have other content that lives below the fold

    Issue is on mobile the user is unable to scroll down to the rest of the page. The touch events in canvas override the swipe down on mobile. However on desktop this works since a scroll wheel is used and not touch.

    My only idea so far is to just call a function from Construct attached to a swipe up/down action and then with javascript use ScrollTo and fake the page scroll. But I rather find a cleaner solution.

  • 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.

Spock's avatar

Spock

Early Adopter

Member since 28 Mar, 2013

None one is following Spock yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies