Hello,
I want to improve the design of the puzzle game i'am on.
I wonder if it's possible to give a kind of "pixel" look to a sprite with one color?
I have different sprites who change color, i wonder how give a nice style to them?
Thanks
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".
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?
Develop games in your browser. Powerful, performant & highly capable.
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?
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>
<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....
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