Spock's Recent Forum Activity

  • AMAZING! This should be built into CS2 its that great. I now feel comfortable animating like I do in Actionscript TweenMax. I know this was built years ago but this changed my experience with CS2 forever. A++ <img src="smileys/smiley2.gif" border="0" align="middle" /> <img src="smileys/smiley17.gif" border="0" align="middle" /> <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello Ashley. I agree no one uses it. I just have every browser installed for testing. I just checked on my Mac Safari and the cursor behaves properly. So I can just block Windows Safari. BTW, I now have my prototype working on all browsers. Thanks to this forum I have solved many problems and learned a ton with each obstacle. Really enjoying CS2 and the community. Thanks...

  • Hello :)

    Noticed that "Set cursor to None" or sprite doesn't work in Safari. PC.

    Anyone else have this problem?

  • GOOD NEWS! Well, after a few beers and a few hours. I went line for line and variable for variable and I managed to find 2 conflicts. Was some usage of touch and click. After this, I was able to get FireFox to work. However on a Touch PC Tablet Firefox has some performance issues. Where as Chrome doesn't have any. Seems to chug on Firefox, and run fast/smooth on Chrome. So maybe I will still force chrome.

  • My issue isnt just Pathfinding, seem to run strange or have random glitches across Safari, FF and IE as well not running Blending Modes correctly on some other machines. So far performance is great on Chrome PC & MAC. I may just force the game to be ran in Chrome. Since this is simply a hobby and a outlet to use my illustration. I have no intention of charging so I will force users to use Chrome. Maybe it has something to do with that Chrome is a 32bit browser and FF is a 64bit browser? However, I have a 64bit version of Java installed.

  • ok... Its the Pathfinding. I still had the sprite on stage. That was crashing FF and making a black screen. Really frustrating. Runs perfect in Chrome, but sucks in FF. Oh I am starting to wish I continued to build my game in Flash. <img src="smileys/smiley19.gif" border="0" align="middle" />

  • Ok, so I disabled every instance of pathfinding. The error is gone. however in FF (Mac or PC) the game is just a black screen. no loader or activity. Is this a Jave issue?

  • This may be unrelated to the 1.26 Update. Seems something I added is crashing. I ran some of my older versions and they work in FF. Looking at the error, I guess its something wrong with my pathfinding...

  • Since the new 1.26 Update I no longer can view my game in other browsers. Only works in chrome. I tried on PC and Mac. I get the following Error in FireFox view preview. Still crashes when the game runs live from my server.

    Javascript error!

    TypeError: postMessage requires more than 0 arguments

    localhost/pathfind.js, line 164 (col undefined)

    This is either a bug in Construct 2 or a problem in a third party plugin or behavior - please report it to the developer!

  • Well, got this to work. It seems it only works with "crop". Delete everything above the CSS and add the following. (HOWEVER) I now notice that sometimes if you rotate the phone the bar will come back and push the layout up. Ehhh this is hopeless.

    -------------------------------------------------------------

    <!DOCTYPE html>

    <meta charset=utf-8>

    <meta name=viewport content="width=device-width, initial-scale=1, maximum-scale=1">

    <meta name=apple-mobile-web-app-capable content=yes>

    <meta name=apple-mobile-web-app-status-bar-style content=black>

    <title>Test fullscreen</title>

    <style>

    html, body {

    margin: 0;

    padding: 0;

    }

    #page {

    position: absolute;

    width: 100%;

    height: 100%;

    -webkit-box-sizing: border-box;

    box-sizing: border-box;

    }

    </style>

    <div id=page></div>

    <script>

    var page = document.getElementById('page'),

        ua = navigator.userAgent,

        iphone = ~ua.indexOf('iPhone') || ~ua.indexOf('iPod'),

        ipad = ~ua.indexOf('iPad'),

        ios = iphone || ipad,

        // Detect if this is running as a fullscreen app from the homescreen

        fullscreen = window.navigator.standalone,

        android = ~ua.indexOf('Android'),

        lastWidth = 0;

    if (android) {

    // Android's browser adds the scroll position to the innerHeight, just to

    // make this really <img src="smileys/smiley35.gif" border="0" align="middle" /> difficult. Thus, once we are scrolled, the

    // page height value needs to be corrected in case the page is loaded

    // when already scrolled down. The pageYOffset is of no use, since it always

    // returns 0 while the address bar is displayed.

    window.onscroll = function() {

        page.style.height = window.innerHeight + 'px'

    }

    }

    var setupScroll = window.onload = function() {

    // Start out by adding the height of the location bar to the width, so that

    // we can scroll past it

    if (ios) {

        // iOS reliably returns the innerWindow size for documentElement.clientHeight

        // but window.innerHeight is sometimes the wrong value after rotating

        // the orientation

        var height = document.documentElement.clientHeight;

        // Only add extra padding to the height on iphone / ipod, since the ipad

        // browser doesn't scroll off the location bar.

        if (iphone && !fullscreen) height += 60;

        page.style.height = height + 'px';

    } else if (android) {

        // The stock Android browser has a location bar height of 56 pixels, but

        // this very likely could be broken in other Android browsers.

        page.style.height = (window.innerHeight + 56) + 'px'

    }

    // Scroll after a timeout, since iOS will scroll to the top of the page

    // after it fires the onload event

    setTimeout(scrollTo, 0, 0, 1);

    };

    (window.onresize = function() {

    var pageWidth = page.offsetWidth;

    // Android doesn't support orientation change, so check for when the width

    // changes to figure out when the orientation changes

    if (lastWidth == pageWidth) return;

    lastWidth = pageWidth;

    setupScroll();

    })();

    </script>

  • Wrangler: I get the same results on Android when I use CSS or JavaScript to hide the bar. It adds a margin at the top which triggers the address bar to hide however pushes my layout down.

  • I am testing live on my server on android via scale with no results.

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