mathie's Forum Posts

  • Thanks for everything :)

  • The problem is probably somewhere else, sorry to disturb you for nothing i will check everything.

  • Maybe, i confuse and the problem is not that all the instance variable are change.

    I beleived it's that because i test by creating "text" to show the instance variable of each element and that's what i saw.

    Here is the rest of the code.

  • I will put it in english :)

    The familie instance variable is "ReponseJoueur" , the familie is "Element".

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • here it is. Thanks for your answear.

  • I create a families "Enemies" of sprite with an instance variable "heatlh".

    I made an event:

    "mouse" click on" "families Enemies" => "families Enemies" changes instance variable "health".

    I was thinking that only the sprite who was click on will have his instance variable change. It seems that alls the object of the families get their variable changes.

    How can i correct this?

    Thanks

  • Me again.... I still not chaive to make it work.

    I think the problem might come from the XML path but i'am not sure.

    I try different stuff and create a text to test if it's wotk,, but no.

  • Yes that's exactly what i want to do.

    I ended with a formula like that:

    XML.StringValue("/Niveau/"Self"/text()")

    The self is probably wrong, i try different way but i don't find how type correctly the spritename.

  • So, firstly, you need to load your XML file using AJAX. And then you can use one of the XML expressions (NumberValue or StringValue) to retrieve your data. For example: Xml.StringValue("/Niveau/1/A/text()").

    I struggle with the XML road.

    Instead of "1" and "A" I want to put the name of the sprite in the XML line.

    For exemple i want to compare the instance variable of the sprite "1a". So it will search in the XML file the answear of 1A. But if i'am on the sprite B2.

    How i do?

  • Thanks for your answear.

    Even if it use ajax. The game can be play offline?

  • Hello,

    I have an XML files where i will stock the correct answear of a game.

    The XML will be organyze like that:

    <Niveau>

    <1>

    <A>open</A>

    <B>open</B>

    <C>close</C>

    <D>open</D>

    </1>

    <2>

    <A>open</A>

    <B>open</B>

    <C>close</C>

    <D>close</D>

    <E>close</E>

    </2>

    </Niveau>

    I wonder how i can extract the data to check what the player have done in the game?

    Sorry i don't find anything like that. Thanks

  • No, not preview. I meant your C3P project file. Please upload it to file sharing service (Google Drive, Dropbox etc.) and post the link.

    Here it is sorry.

    https://drive.google.com/open?id=1iL9OwgALZUZlTOA_30cEKX8yZixttf1F

    Yes that's what i try to do :)

  • thanks for your help.

    You want this to see?

    https://preview.construct.net/#gkavih2k

    How i send it?

  • What exactly doesn't work? Multiple sprites are changing color?

    You can do this:

    > Mouse On Object MyFamily clicked
    MyFamily pick top instance
    	MyFamily set color....
    

    Nothing change color

  • Hello i'am making a small game and i wonder if the logic i follow to create the game will works.

    I have many differents sprite who overlap each other on the game. But their collision area don't. Will it still be a problem?

    All thoses sprite are in a familie.

    When one sprite of the familie is click on the sprite change color. But only the on clicked on.. Not all the other in the familie.

    Is it ok?

    Because it doens't work there.