Magistross's Recent Forum Activity

  • Isn't the publisher name tied to your Microsoft Developper Account ?

  • damjancd No prob mate, just spreading the knowledge !

    eli0s You might want to take a look at XML. Using a simple XML document you could probably achieve a fully functionnal dialog system. Although you could do it with tokens, it's definitely not the most effective way. The method would be quite similar, Request Project File -> Your XML file. On completed -> Load XML using Ajax.LastData. Then using an easy XPath syntax you can fetch your nodes.

  • External files can be loaded via AJAX and Project Files. First import your file (right click on the "Files" folder -> Import files). Then use AJAX to request a project file, select your file, and with the "On completed" AJAX trigger, set your text object to AJAX.LastData

  • You can use the "QueryString" Browser Expression. As per the manual, it would return "?key=ABCDE" in your example. You could then parse it to retrieve the value of the desired key.

  • Ashley You might be interested in this, I added the following CSS rule in index-phone.html

    @-ms-viewport {
        width: 640px;
    }[/code:1ejc3kpf]
    And suddenly it started behaving as intended. The DevicePixelRatio get ajusted correctly, and so are the width and height.
  • I don't know if it'll warrant a new report, but could you please Ashley take a look at this new screenshot and tell me if something's amiss ? Shouldn't innerWidth and innerHeight be the actual size of the device screen ?

    Actual screenshot from the 720p emulator, no cropping :

  • Ashley The weird scaling is gone, but now the problem is it's not scaling at all. Most certainly because the device width isn't fetched correctly. If you refer to the previous screenshot, you'll see the width that I get when I use normal scaling. 1278 for a 720p device, instead of the expected 1280. Seems like a bug on WP side, any workaround possible ?

  • Don't save the formatted value. And change the event at line 8 (from your picture above) so you format the value from the LocalStorage. You have to store the decimal value, not a string representation.

    Be wary when you compare values, because "1000" is lesser than "200", but 1000 is greater than 200.

  • Could you upload a picture of the problem ?

  • Are you adding a one pixel border on all four sides ? You might try to limit yourself to only two if so.

  • I checked your CAPX. I noticed the number you want to format has a floating point. My Regex assume you don't. The "FormatCurrency" Regex assume there is a floating point. So you might have to combine both in a function and use the appropriate Regex. Be sure to pass the value as a string to the regex, otherwise it might behave strangely. You can do that by appending an empty string to the variable (implicit conversion), or using the str() function (explicit conversion).

    Here's the modified CAPX.

    tomhaiger You might want to read a bit on "regular expressions" in general, especially the Javascript variant, which lacks the lookbehind functionnalities. It's quite a powerful feature for matching and replacing strings.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Funny thing is "LetterBox Scale" seems bugged too, there's a small gap of 2 pixels on the right, and the text box shows "width : 1278, height 720"... so it skews the output ever so lightly.

Magistross's avatar

Magistross

Member since 4 Jul, 2011

Twitter
Magistross has 14 followers

Trophy Case

  • 13-Year Club
  • Entrepreneur Sold something in the asset store
  • 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
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies