mardoch's Forum Posts

  • Hi Everyone!

    I’m on a platformer project actually and I encountering some several issues with animations and collision box.

    As you can see in the capx file , I create 2 different kind of enemies.

    The first one, named « Ghost », rise from the floor when the player object is getting too close to them. It is based on the range between the objects, if the player object is going far from an enemy, this one is hiding on the floor again.

    My main problem on this is getting the animation trigger available for all the enemies object. For now, it’s just working fine for one enemy. But it doesn’t work for multiple enemies on the same time (the 2 Ghost in the file)

    For the second kind of enemy called « Skullbat » as you can see, the flying animation only works for one enemy object. The second one is moving but don’t want to play the « Fly » animation and the collision box I have create doesn’t stick on the image point of the Skullbat.

    I think for both of the enemies class, the problem is the same.

    I try the « for each » condition but maybe it doesn’t work very well for this.

    If you guys know how to fix that I’ll be glad!

    Thanks!

    https://www.dropbox.com/s/y7ldq3w0s9mbe ... .capx?dl=0

  • That's exactly what I needed Wisdoms!!

    You rock!!!

    I first try to make the same thing with a function but it doesn't work the same way. I didn't know this behavior, it's seem very useful, thank! Can't wait to try it and explore it!

    I can close this topic know! Thanks again!

    (btw, Sword & Sworcery is really a great game, I'm trying to make some pixelart for my game but still don't know if the result can be as beautiful as Capy's game)

  • Hello talented peoples!

    I was wondering how to make another type of transition between layout.

    This is what I have in mind:

    I tried different kind of blend mode to do that, I guess I have to make an circular object that interacting like a mask with the other layers, then change it size at the end of the layout and at the beginning of the next one.

    The problem is I'm not sure that this kind of mask is working with multiple layers and I also miserably fail to change it's size with the dt.

    Any suggestion? Thanks!!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • 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!