mardoch's Recent Forum Activity

  • Hello IndieKiwi,

    Thanks to your help, I finally make it!

    In fact I just remove the Functionand replace it by a "On Every trick" event. Now it properly display the correct node from the XML and also replace the chosen global variable by the XML datas!

    I attached the new file here as an exemple if anyone have the same issue!

    By the way, I get back to the original XML design because it didn't work with your design:

    <stages>
    <stage id="1">
    <name>The First Stage</name>
    <Level1>5</Level1>
    <Level2>500</Level2>
    <Level3>5000</Level3>
    </stage>
    </stages>[/code:rc8apsej]
    
    That could be maybe easier to code but it's working like this, so it's fine.
  • Still don't work. I designed my xml as you recommended IndieKiwi, but it doesn't change anything

  • Alright, thank you guys. I change my xml file and now it's properly loaded.

    However,I get back now to my main question: can I just load the node that is equal to my global variable (named "Stage") ?

    Actually it only load the first node of the xml.

    I try different sting value like

    XML.StringValue("/stages/stage[ID='" & Stage & "']/name")[/code:2ca6fujm]  (I get that from another topic) but i fail...
  • Ah ok! Thanks, I get it.

    But it doesn't solve my issue in fact. My datas aren't loaded yet.

    Is it something in the events I miss?

  • Well, I got a syntax error if I don't put them... How can I put the Xpath without the quotes?

  • Hi there!

    I trying to make something very specific.

    For example, I have different objects supposed to be stage. Each stage has a unique variable number(1 for stage 1, 2 for stage 2,... ). I also have a xml file that contains multiple value for each stage (its name, the cost of level 1, 2 and 3 (yes, you can upgrade Stage)).

    So, I want to load that xml file, then get a value (stage name and/or Level cost) and add to the selected stage all those informations. the name should appear in the Text object and to cost to a global variable.

    The problem is that I'm not sure that it's even possible. I think of this method to get all the stages values in a single xml file, so I won't have to change everything in the capx file.

    (The capx file I create is attached)

    If anyone have a solution for this...

    Thanks for your help!

  • Thaks LittleStain! You rock!!

  • Hi everyone!

    I'm working on a stage select layout and I encounter an issue with my layer. In fact I would like to put a lot of stage on this layer and finally, it ll be larger than the layout. So when I move to the next stage, I would like my layer (the current stage selected) to be always in the middle of the screen.

    I don't really know how to make it, or if it's possible.

    Here is my capx attached if you want to take a look

    Thanks a lot!

  • Problem Description

    When I use the Warp Mask effect (both on a particle or on a sprite), my entire layout has a display problem (see image). It duplicate some sprite with the camera movements.

    The issue stay even if I delete the particle or the sprite on the layout. I came back to normal if I delete the effect.

    Steps to Reproduce Bug

    • Create a sprite or a particle
    • add the warp mask

    Observed Result

    Display duplicated sprites

    Affected Browsers

    • Chrome: Y
    • FireFox: Y
    • Internet Explorer: -

    Operating System and Service Pack

    Windows 7

    Construct 2 Version ID

    Construct 2 r169

  • Hi guys,

    Ok so here is the capx file I created about the hang & climb action.

    It's still need some adjustments (the animation don't really fit for now) but the main idea is there.

    In fact I created a new group for the climb action, it's used when the player enter in collision with a small trigger on the platform. It set the player sprite collision on the trigger point instead of the player controller.

    Check the file to get what I mean

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi everyone! I'm Mardoch. I just release my game a few weeks ago ().

    Now I'm trying to do a game on my own with Construct 2. It's a really cool software and it change my life because I'm not a dev (I'm a graphic designer ).

    Hope to see a lot of game here!!!

  • Hi slanw

    I just replace the file, you'll find it here

    Good luck!

mardoch's avatar

mardoch

Member since 21 Nov, 2013

None one is following mardoch yet!

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies