Magistross's Recent Forum Activity

  • You will need some tags or another mechanism to identify portion of the document.

    In your example, you could use the "tokenat" expression with "newline" as the delimiter. This way you could retrieve any desired line provided you know its rank in the sequence.

  • You can parse the text in a multitude of ways. The right method to chose depending on your document structure.

    What does your document look like ?

  • Ashley meant that you probably have a "DevicePixelRatio" that is not "1". And if that non-one value is also non-integer, your canvas size could become irrational, which would cause your entire layout to distort here and there.

    The browser object can be used to inspect the DPR.

  • Where is the scaling set ? Layer scaling ? Could it a rounding bug ?

    If you disable all scaling, and use "letterbox integer scale" as the "fullscreen in-browser" mode, it should be pixel perfect.

  • You could try your luck with a Browser.ExecJS to check the location property of the "top" window.

    Compare two values - Browser.ExecJS("window.top.location.toString();") <> "newgrounds url"[/code:3i5gi78c]
  • Is there a call for "on dialog "X" finished"?

    Or just a way to stop everything until the dialogue is finished

    If you want to stop everything else while a dialogue is running, you will have to base your game logic around some kind of boolean variable. This variable should be set to "true" on the Dialogue_StartDialogue function and to false on the Dialogue_End function. (lines 5 and 127)

    If said variable is true, stop all other game logic, disable behaviors, etc., depending on how your game is made.

  • If you want to remove "Test5@" from your string, and if you're certain the string will always end with , this pattern will do it "[^@]*@$".

    So RegexReplace(Text1.Text, "[^@]*@$", "m", ""). Note that with the "m" flag, the "$" will match each end of line instead of only the end of the string.

  • Could you provide a screenshot of the unwanted behavior and perhaps a picture of what should occur ?

    It's possible to change how the portrait sprite is positioned at creation. The event in question is event #15. (or close by, if our numbering doesn't match)

  • Oops, I guess it was a bit misleading with the "Tap Choice Mode" in the editor. It's only there for preview purpose. Ticking it will change the "Dialogue_TapChoice" global variable to 1. When that particular variable is set to 1, all choice initiated will have to be resolved with a tap gesture.

    Here's one way how the "changeportrait" function could be reworked to allow changing the animation frame.

    Changing the font size is basically done by changing the spritefont's sprite, and by changing a few value here and there so the system knows about the size of characters and what not. I'll help you when you get there if need be!

    By the way, that game of yours looks pretty sick!

  • Not too sure I understood your question correctly, but here goes nothing!

    The portrait is actually a single sprite object, named "Portrait". Each animation define a single portrait, it can be animated or not, depending on your need.

    There is the premade "changeportrait" text function that change the current portrait animation. It accepts only a new animation name, but you could easily modify it to allow specifying an animation frame number. Both parameter could be provided by a variable in the dictionary.

    That said, one could also decide to bypass the portrait mechanism provided by the system and create an entirely new one using only custom text commands.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Are you sure AJAX.LastData contains actual data ? (i.e. is it really loading your file ?)

  • Great that you figured it out. Do you still have trouble with the saving functionality? "Download dictionary" is actually the way to go, unless you want to download a single dialogue for a particular need.

    I remember having trouble downloading with Internet Explorer, the "Save as JSON" did not work properly on some older version. Could it be what's happening?

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