Elliott's Recent Forum Activity

  • No, but you can use the Browser plug to check a variable in the url:

    QueryParam

    Return a query string parameter by name. For example, if the URL ends with index.html?foo=bar&baz=ban, QueryParam("foo") returns bar and QueryParam("baz") returns ban.

    I tried this recently, and I think something's changed with the browser object; originally it would would return the address show in the browser (or the top page), so if your game was in a iframe on a homepage it would return "example.com" when you queried the URL, however now it will return "example.com/c3directory/index.html" - the actual path of the file, regardless of the browsers current location.

    Other than that, what Newt said is correct; you (at least used to be able to) query the page URL and act based on this, so if the current page the user is on is the one you want, play the game, if not, go to a blank layout or something.

  • For the record, SSL is easy to get on websites nowadays via LetsEncrypt - there's no real excuse for HTTP in 2019

  • In C3 you would simply use the tween behaviour with a linear ease:

    construct.net/en/make-games/manuals/construct-3/behavior-reference/tween

  • The forums seem to be under some overly friendly caching, notifications and posts seem to stay/disappear depending on the page; repeated refreshing fixes it

  • You wouldn't be able to - the engine is integral to how the game works; even one entirely powered by JS would refer to elements populated by the IDE

  • How are they implementing your game into their site? This is really something that should be done on their page... What are the name of their events? Are they using analytics.js, GTM or UA? Do they have a preferred schema for the event? (i.e are they using timing, app/screen or just some weird version of send?)

    At a guess, something like this?

    ga('send', 'event', 'levelStart', 'Level1' { 'nonInteraction': 1 })
    

    It depends how strict they want to be with their reporting.. personally I'd use nonInteraction... They must have a preferred snippet for this otherwise their anayltics would be a mess

    This feels like a really weird work around to get rid of page bounces, but surely they know that any custom event will negate a bounce? They could have a universal time based event that negated all of this...

    <script type="text/javascript">
    function timer10(){ga('send', 'event', 'TimeOnPage', '1', '10+ seconds', { 'nonInteraction': 1 });}
    setTimeout(timer10,10000);
    </script>
    

    Every session over 10 seconds would then be a tracked session

  • Yes - however it's a pseudoclass, so you'll likely have to include it within the page HTML, though you could use Scripting to apply it to your element ID with JS.

    input:focus {outline: none}

    If the outline property is something you don't use in your initial styling, you could apply it there, alternatively if you do, you could force the initial styling into the focus state by using !important.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The code that you've posted has several IDs - in HTML an element typically only has one. The formatting looks a bit weird, were you originally using a preprocessor? You'll want raw CSS for it to work properly.

    Construct doesn't have any good way of supporting CSS classes, you can set an ID, but for anything else you have to the use the Set Style action and add each rule line by line; for this reason it's worh bundling all of your CSS into a single ID.

  • Without knowing what you want to achieve, this is hard to advise on, you've just posted a block of CSS.

  • Given that it's a less common requirement I don't think we will add a folder for stylesheets like we have for scripts that loads the files automatically ( unless lots of people want it ).

    As someone who constantly tweaks the HTML output to add external style sheets and style around elements, this would save some post-export editing.

  • Does the problem persist in different browsers/Chrome with no extensions running?

  • justifun

    The biggest annoyances now is that I cant figure out how to drag events or resize the action box width. I even tried the new experimental bluetooth mouse support in IPADOS.

    Chrome on iOS12 can actually do this, it's much easier with a pencil, but you can do it by hand as well.

Elliott's avatar

Elliott

Early Adopter

Member since 27 May, 2012

None one is following Elliott yet!

Connect with Elliott

Blogs