Ashley's Recent Forum Activity

  • The old WebStorage plugin used the localStorage/sessionStorage API, but browser vendors plan to remove it, so we won't bring it back. The new storage plugin (called Local Storage in C2 - yep kinda confusing sorry ) uses IndexedDB internally.

  • Probably not, unless it can run a browser engine (which looks pretty unlikely).

  • That workaround is necessary for some other audio features to work on iOS. So I'd rather fix it as it is, rather than playing whack-a-mole trading one set of issues for another.

  • Closing, see the bug report requirements.

  • pinellos - so you can confirm you've had this happen in r239? That would appear to suggest that the change was with Java rather than C2 (which actually would make sense given we didn't change anything related to this in r240)

  • Devices usually actually hide their UDID from apps for privacy reasons. Using a random ID saved in storage is pretty much the same though.

  • You do not have permission to view this post

  • Ashley its possible to add action 'refresh existed text' to update typed global variables ?

    It's not really possible, because the text object just gets plain text, it doesn't know where the text came from or how to update it. That's all evaluated in the action parameter before the action runs.

    However you can efficiently just set the text every tick. The text object is optimised so that if you set the same text twice in a row, the second time does nothing. It will only do the text reflow & render when the text actually changes.

  • Hmm, error code 2 is ERROR_FILE_NOT_FOUND (The system cannot find the file specified). Is it actually exporting a JS file?

    Does it work again if you immediately go back to r239 and try again? If not it could be a Java update that broke it.

    If the minifier doesn't run, you should simply be left with an unminified JS file, and everything should still work fine.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • newt - please don't needlessly start a flamewar in a bug report. The specific words people use isn't really important as long as they convey the bug report clearly.

    - the main issue with changing this is it seems likely this would break existing projects in weird and subtle ways. If someone's game breaks due to the rounding direction changing, it will probably be a nightmare to figure out the chain of consequences. The int expression primarily exists for converting strings to ints, but does also floor a float it's passed to make sure it always returns a whole number. This probably should not actually be done at all, since neither C2 nor Javascript actually have a formal integer type. It's mostly just a thoughtless carry-over from Construct Classic that shouldn't really have been added. On the other hand if you actually intend to round a float I guess you'd either use floor(), ceil() or round().

    Another issue is val | 0 truncates to a signed 32-bit integer, whereas normal JS floats have 53-bit integer precision, as per the precision of a double. So actual integer truncation would probably also break projects using the expression on very large numbers. (Some people like super-mega-high scores )

    So I think there's too much to lose vs. not much to gain here, so I'd probably just file this under "weird quirks of C2". Maybe for C3 I should just deprecate the expression and add a separate StrToInt() expression or something like that?

  • Tested on an iPhone 5S with iOS 10.1.1 and it worked fine. It starts playing audio right away. I built the .capx in the original report with PhoneGap Build using WKWebView. So as far as I can see, it works on iPhone, and it works on iOS 10.

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,776,647 followers

Connect with Ashley

Trophy Case

  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • Forum Mega Brain Made 20,000 posts in the forums
  • x126
    Coach One of your tutorials has over 1,000 readers
  • x74
    Educator One of your tutorials has over 10,000 readers
  • x5
    Teacher One of your tutorials has over 100,000 readers
  • Sensei One of your tutorials has over 1,000,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x42
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs