Vintehin's Forum Posts

  • 15 posts
  • It's working !

    Thanks all of you, it was a double-quotes error indeed !

    Here the working capx if someone have the same problem one day :

    http://www.vintehin.fr/construct/xml_ok.capx

  • If the global variable is a text I don't think there is a need for the extra "

    Try if this works:

    XML.StringValue("/story/line/text()")

    Thx for helping me.

    Still can't make it work.

    I've made a little capx if someone want to take a look :

    http://www.vintehin.fr/construct/xml_test.capx

  • Hello,

    let me explain my problem :

    I use XML on my project.

    [quote:2r052iec]<story>

    <line id="01">hello</line>

    <line id="02">I love Construct</line>

    <line id="03">But I'm a noob</line>

    </story>

    I call line "id" with this xpath expression using a global variable :

    XML.StringValue("/story/line/text()")

    Here an exemple made by korbaach few days ago : http://s000.tinyupload.com/index.php?fi%20...%207337387723

    It works great. Perfect !

    NOW MY PROBLEM :

    I want to do the same, but with 2 XML attributes :

    [quote:2r052iec]<story>

    <line id="01" name ="Cat">hello i'm Cat</line>

    <line id="01" name ="Dog">hello i'm Dog</line>

    <line id="02" name ="Cat">Cat loves Construct</line>

    <line id="02" name ="Dog">Dog loves Construct</line>

    </story>

    And I want to call line using both attributes, "id" and "name" with two differents global variable :

    XML.StringValue("/story/line/text()")

    And it's not working. And I don't know why.

    I don't think it's a xml synthax error, when I try to call directly "id" and "name" without Global Variable, it works fine

    XML.StringValue("/story/line/text()") => OK

    I've tried to make it clear, but not easy to explain, hope you can understand me and please tell me if you have an idea of what i'm doing wrong !

    Thank you ^^

    EDIT :

    here a Capx of my problem :

    http://www.vintehin.fr/construct/xml_test.capx

  • thanks for help !

    I will try both your method and see if I can make my perfect text engine

  • Another thing I don't really understand :

    When I export my Construct project using Cordova, the destination folder is like 2Mo.

    The "project.apk" I got from Intel XDK Android Crosswalk is 20Mo :-/

    Where does this 18mo come from ? ?

    (I just tried to export a little project, with only one sprite, no sound. and it's still very very slow on my tablet, so definitely not a performances issue)

  • My project has some musics (m4a / ogg).

    Do I have to include "Media" plugin in Intel XDK Cordova mobile app settings ?

    Or "Audio" and "Player" plugins in "Featured & Custom Cordova Plugins" list ?

  • (english not perfect sorry)

    Hello everyone.

    I'm working on a little Visual Novel and want to try it on Tablet. I've made a Cordova export (following Ashley's tuto) and then use Intel XDK to built my Crosswalk for Android.

    When I try the android App on my tablet, it's very very slow, and I don't know why.

    I've tested my project with :

    -Chrome for Android on a Samsung Galaxy Note 10 (work)

    -Opera on Ipad Air (work).

    -Preview on LAN on both tablets (work).

    Every thing works fine. So I guess it's not a Construct problem or a performances issue.

    I'm probably making some stupid mistake with Intel XDK. But my project work perfectly on the Emulate Tab. So I have no idea where I go wrong.

    If you have any idea of what can make my app so slow, please tell me, it will help me a lot

  • Just finished the game (well, I stil need one more run to get last success).

    I liked it a lot. And I'm very impressed buy your work. Good job !

  • Seems like the approach to use would be to have the full text in there, already justified and then make separate characters visible.

    You're probably right, I'm actually searching for this kind of solution if any of you have idea please tell me

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • (my english is not perfect sorry).

    Hello hello,

    I'm currently working on a visual novel project. Nice little story, with painting, music, few visual effects. Very simple.

    Everything worked fine since last week. I have a problem with the text display and can't find a solution.

    Exemple (work with Chrome, not firefox).

    Capx

    • I display the text with a Typewriter effect using Ashley's method.
    • For Destination Text, I use a TextBox object so I can add some CSS. I want my text align to be "justify". Didn't find proper solution with simple Text object. (work with Chrome and Node-Kit).

    My problem is that the CSS wait the text to be displayed to apply the "text-align : justify" and it make this ugly wraping/jumping effect.

    Do you have any idea how to correct that ?

    -If I apply "text-align : Justify" to SourceText ? Can I ask to DestinationText to "clone" exactly the same display before adding typewriter effect ?

    -Can I apply opacity to each letter or only for the full textbox ? My idea is to set the text to opacity 0% and then the typewriter effect won't add text but simply change opacity letter by letter.

    -I was thinking of using a simple sprite black object to mask the text and make it move from left to right to make a fake typewritter effect, but only work on a black (or other color) textbox and if possible I want my textbox to be transparent, on top of very precise and detailed painting :

    If you have any idea, please help me, I'm just a nooby graphist who start Construct fews weeks ago

  • Hey Aurel,

    I first tried C2 after your speach at Montreuil Indie Games Days ! I'm also a french "do it all by yourself" developper and Construct changed my life !

    I've pre-ordered TNP.

    Force & Honneur.

  • Magistross

    thx, it's exactly what i needed ! Save me a lot of time

  • What is the most efficient way to make it so that when it's typing a long word near the end of line it doesn't shift down to a new line if it gets too long?

    If you found the answer I'll be very happy to ear it !

    I still to figure this out but otherwise the Ashley method is great.

  • lunarray

    I use your behavior for smooth sprite and background travelling in my visual novel project. It's very easy to use and work very well !

    Thank you very much and happy new year ^^

  • Hello hello,

    I'm Vintehin from France. I'm professionnal photographer/graphist. Know nothing about programmation and code, and C+ or java or chinese langage.

    Here to find some resource/help for my first visual novel. See you

  • 15 posts