Lie Detector
mathgeek2000
Member Posts: 7
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
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.
Pick a random number between 1 and 2 and then display the correct image. If you need specific instructions just say so...
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Ya... I think I need specific instructions. Kinda new to game salad.
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:
Hope that helps.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
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?
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.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Here is a little sample, I've changed the attribute from a boolean to an integer for this sample.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
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.
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?
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page