de en es fr
Let the machine help
Light teasing, exhibition, BDSM, sissyfication, watersports... with sounds and pictures


Post new topic Reply to topic  [ 4 posts ] 
Author Message
 memory game - random sound / image
PostPosted: Sun Dec 18, 2011 5:51 pm 
Offline
Shy
hi, i would like to set up a kind of memory game.
In the first step the victim is presented images of feet and the name of the girl.
In the second step there is only presented (randomly) one image of feet (shown before) and now the victim has to remember the name of the girl.

Therefore, i would need:
- a random presentation of the next question
- the possibility to offer the names of all girls (lets say, 20) and to check the right one (could also be done with numbers, each girl gets a number, so the answer could be a number between (in this example) 1 and 20

Can anyone set me on the right path...? Thanky for your help :-)

PS: If this is successful, i would love to do this also with sondfiles of girls havin an orgasm... its SO difficult to make a difference even between only 5 girls moaning with eyes closed...;-)


Top
 Profile Send private message 
 
 Re: memory game
PostPosted: Sun Dec 18, 2011 6:53 pm 
Offline
Active member
somewhere before asking randomly the questions you should declare a list or two to contain the question image and the correct answer. To show a random image you can get the index of the question with getRandom(), and the victim's answer with getString. This is better seen in one example:
Code:
// Step 2
def numberOfQuestionsToAsk = 20
def questions = [
        "yourScript/feet1.jpg",
        "yourScript/feet2.jpg",
        "yourScript/feet3.jpg",
        "yourScript/feet4.jpg",
        "yourScript/feet5.jpg"]

def answers = [
        "Girl name 1",   // Answer to feet1.jpg
        "Girl name 2",   // Answer to feet2.jpg
        "Girl name 3",   // Answer to feet3.jpg
        "Girl name 4",   // Answer to feet4.jpg
        "Girl name 5"]   // Answer to feet5.jpg

def index = null
def lastIndex = null
def girlName = null

for (def k=0; k<numberOfQuestionsToAsk; k++) {
        lastIndex = index;
        index = getRandom(questions.size());
        while (index == lastIndex) {   // This bucle will prevent to repeat the last question
                index = getRandom(questions.size());
        }
        setImage(questions[index]);
        girlName = getString("Who is this girl?","");

        if (girlName == answers[index]) {
                show("Correct answer!!!");
                wait(5);
        }
        else {
                show("Wrong answer!!!");
                wait(5);
        }
        setImage(null);
        show("Next question...");
        wait(3.5);
}


Top
 Profile Send private message 
 
 Re: memory game
PostPosted: Mon Dec 19, 2011 12:53 pm 
Offline
Shy
thank you for the quick and detailed answer, it works very nicely!
But i tried also to replace the feet-images by sounds (to make the victim guess correctly the name of the girl moaning). This doesn't work, i am always getting the error: The machine is looking only in the image-folder and does not play the wav-file...


Top
 Profile Send private message 
 
 Re: memory game
PostPosted: Mon Dec 19, 2011 7:29 pm 
Offline
Site Admin
User avatar
In that case, you should replace
Code:
setImage(questions[index]);

by
Code:
playSound(questions[index])


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010 - 2020
This website uses session cookies only.