BanksySan's Forum Posts

  • Wrapping the properties in an str() doesn't do anything, parsing it as an integer does work (but obviously means that only integer values are available).

  • I'm using the Touch.Alpha, Touch.Beta & Touch.Gamma properties. The problem is, they only seem to be a valid value for integers.

    https://drive.google.com/open?id=1XEArIF97ABCOdSovFpW3s0qTdsaqwnOe

    I can prove this with Chrome dev tooling. When the emulated orientation is any fraction, no valid is available. When it is an integer, it's fine.

    Is this a bug or is this me not understanding it's use?

    Tagged:

  • Found it. i was exporting it as a Cordova project. i should have exported it as an APK build.

  • I've exported, the project has build but rather than giving me an APK, it's given me a ZIP.

  • That's it. Thanks.

  • I have a sprite that moves with a tween behavior.

    There's a random selection of sprites that have an IsActive variable set. I need to reset this variable at the end of the tween so that it can be selected to move again.

    How do I detect the end of a tween?

    Tagged:

  • Is the problem CORS?

  • Fengist explained what I meant. No idea if you can make a TCP handshake happen in Construct/JavaScript but if you could then that would be good.

    My point about using example.com is that it is one of four special domains that are specifically reserved for when you need a real domain, that works, but doesn't actually do anything.

    • example.com
    • example.net
    • example.org
    • example.edu

    You could use a domain that's probably always there, but this is better. I've never known it return anything other than a 200.

    You could use an endpoint you host, which means you can have control and responsibility of keeping it available.

    The acid test for choosing whether to use you own endpoint or to use example.* is this: Do you want to test whether the internet is accessible, or do you want to test if your specific resource is accessible?

  • By 'proper' I mean best practice, and by 'the real thing' I mean the difference between something I write to see how something works for my own consumption compared to something that isn't for my consumption.

    If I was writing an application, I'd build in various bits that I can get diagnostics from, for example in Windows world I might write to the Event Log, or to the Trace output or maybe to the console if it has a console.

    Is console.log the preferred mechanism with an application written with Construct 3, or do people tend to build a bespoke debugging mode, maybe with a a text box displaying?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I can wrote a console.log() in a script in a function to push messages to the console, but is there a more proper way of doing it?

    For purely testing projects I use a text-box and append messages to it. Not good for the real thing though.

  • Don't want to/can't host a no-op endpoint then you could use example.com. Better yet, make a HEAD call rather than a GET call, which reduces the size from 1,270 bytes to 606 bytes.

    To be super fast though, just do the TCP connection, only three packets and no other overhead that way.

  • The in & out animations are identical, just reversed. Can I do that directly or do I have to create two animations?

    Tagged:

  • What properties of an instance do you think about when you decide whether to make a new thing a brand new type or a variation of an existing type.

    For example. I could have just one text box and use instance variables to set the properties and control the content, font and other properties with those. I could create many text box types, each predefined with the important properties.

    The key thing I can think of is whether they are the same prototype (sprite, text etc…) and whether they have the same behaviors.

  • As Construct 3 is a PWA, it's running in Chrome even though it's launched offline and outside the Chrome UI. I think it's impossible to block it, however I doubt very much that it's Construct 3 that killed your tabs. The PWA is sandboxes like a web page for most things.

  • Thank you, thank you, thank you !!!

    That's the problem. I'd even managed to make the same mistake again in the example. I don't understand why the behavior is quite what it is with that mistake, but with it corrected everything works as it should.

    Did I say thank you?

    Thank you