WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-20-2009, 01:56 PM
EnvisMJ EnvisMJ is offline
Member
 
Join Date: May 2009
Location: Purdue University, West Lafayette, Indiana
Posts: 44
Sit, stay, wait?

So I'm writing a little 'proof of concept' game in vizard, reminiscent of the old memory card games.
The logic side of it is working fine, however, I can't seem to get a 'wait' or delay command that works properly.

It is supposed to: when you select the second card, it should hide the card to reveal the object, wait one second to allow the user to view the object behind the card, then: hide both objects if they match, or reveal the cards to hide the objects again.

I've tried a variety of wait and sleep commands and they all seem to result in one of two situations.

A. It has no apparent effect on the program, the objects are hidden (or cards replaced if wrong) executes as soon as you click the second 'card'

B. When you click the second card, instead of hiding the second card then waiting. It just waits, then hides everything at once.

This is probably going to turn out to be something ridiculously simple, but we've had 4 people puzzled over this problem already.
Reply With Quote
  #2  
Old 05-20-2009, 04:36 PM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
Use the viztask module so you can "sleep" in a function.

http://www.worldviz.com/vizhelp/VizTask_basics.htm
__________________
Paul Elliott
WorldViz LLC
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:35 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC