Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: elusiven on June 02, 2016, 07:27:22 AM

Title: xml attribute
Post by: elusiven on June 02, 2016, 07:27:22 AM
Hi there.

I'm grabbing a few things from xml file for my quiz app.

Title
photo1
photo2
photo3
photo4

On each photo I have attribute "Correct" and =yes or =no, and my xml xpath query for this, shows the specific photo that has correct=yes set within that level.

So I know which photo variable is correct= ( for example photo1) now I need to think of a logic to trigger the win event when user clicks on the right photo, and lose when clicks on correct=no photo.

Does that make sense? Thanks for any info, much appreciated.


EDIT // Okay I think I've sorted it, I used event for each image holder and then did string contain with true/false.. It works the way I wanted I think..