Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Varibles and tracking question :: LINGO needed

Status
Not open for further replies.

nelsonh

Vendor
May 1, 2004
2
US
Hello there,

I am working on building these game interface, oh may. Has being a well!!!

(some of the sounds are not playing, but the basic functionality is there)

Basically, it’s a game where the user has to find objects in the room. The chalkboard is where the question is formulated and the user will have to click the right answer on the room…

So far I got everything working, I get to play random sounds, so on, and the basic functionality is there, but I would like to know how do I go about jumping to the next question, next word on the chalkboard, if the user happens to click on the wrong object more then 3 times.

So far, I got it to work as follow.

Right answer > a specific film loop will play, depending of the questions, once the animation is done, it will go back to a specific frame and the next random question will come up… The same thing will happens if you happen to click on the wrong object… But I need to come up with a way to track how many times do the user clicks on the wrong place… If the user clicks 3 times on the wrong place, a new question needs to show up… How do I do that?

So far here is how I got my Lingo script set up on Director:

-- The words on the chalkboard
set the membernum of sprite 2 = [3, 4, 5, 6, 7][random(5)]

n Questions

If statement that checks which cast member is on the sprite, in order to formulate the right question

if the membernum of sprite 2 = 5 then
puppetsound 1, "QMouse"
end if

n Object rooms – Invosible cast member Button

on mouseUp me
-- Positive Answer
if the membernum of sprite 2 = 5 then
go to frame "movies"


else
go to frame "no"
end if


end



Script for frame “movie”

-- Mouse Animation & Sound
if the membernum of sprite 2 = 5 then
set the membernum of sprite 8 = 34

puppetSound 1, ["affirm01", "affirm02", "affirm03", "affirm04", "affirm05", "affirm06", "affirm07", "affirm08", "affirm09", "affirm10", "affirm11", "affirm12", "affirm13", "affirm14", "affirm15", "affirm16", "affirm17", "affirm17", "affirm18", "affirm19", "affirm20", "affirm21", "affirm22", "affirm23", "affirm24", "affirm25", "affirm26", "affirm27", "affirm28"][random(20)]

end if

n The same the thing happens if I where to click on the wrong place –

Am I making any sense? Am I going on the right direction?

If you have the time to look at my director file, here is the link

Any help will be truly appreciating it.

Sincerely,

Nelson Hernandez
Multimedia Designer
Email: info@nelsonhstudios.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top