Lie Detector

Hey Guys,
I'm creating a lie detector where yo say something, scan your finger, and it will tell you if it is true or false. This is for entertainment purposes. I have everything down except for the part where it says if it is a truth or a lie. I have two images. One says lie

Comments

  • mathgeek2000mathgeek2000 Member Posts: 7

    Oops! Accidentally posted it. One says lie and the other says truth. I want to alternate the two images after the the fingerprint scanner is done. Can someone help me with that.

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Pick a random number between 1 and 2 and then display the correct image. If you need specific instructions just say so...

  • mathgeek2000mathgeek2000 Member Posts: 7

    Ya... I think I need specific instructions. Kinda new to game salad.

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    No problem:

    Create a new Boolean Attribute named truth (or whatever you want), starting as false.

    Then when you scan the finger, add these rules:

    Change Attribute truth to random (1,2)
    
    Rule: If truth = 1 display your content for 'you are telling the truth'
    
    Otherwise display your content for 'you are lying'
    

    Hope that helps.

  • mathgeek2000mathgeek2000 Member Posts: 7

    I am confused. So in the fingerprint scanner screen, I create a change attribute from game.truth to random(1,2) and then what do I do?

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    When you want to display whatever content you are going to show if they told a lie or the truth you use that random number to show the correct content on screen.

    That's what the rule mentioned above would do. Of course I don't know what your content is so I just put "display your content for 'you are telling the truth'".

    Maybe you'll show a graphic image, maybe you'll show some text or maybe you'll go to a new scene. I don't know, it's up to you to choose. But that is where you would make your choice of content.

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Here is a little sample, I've changed the attribute from a boolean to an integer for this sample.

  • mathgeek2000mathgeek2000 Member Posts: 7

    Hey jamie_c. I think I got everything down exempt for the part to spawn the actor based on if it is a 1 or 2. I always get true and false.

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    That is why I changed the attribute from boolean to integer in my sample. So it can start a 0, then be set to 1 for true or 2 for false. When it is zero nothing will happen.

    Were you able to check out the attached sample above?

Sign In or Register to comment.