Home Project Folders Resources How Do I? MWForum
Site Map Search Our Team

MWForum Message [Date Index] [Threads] [Authors] [Attachments] [Subscribe]

[Thread Prev] [Thread Next]

To: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Checking touching within Puzzle Game
From: Alain LCSI <alain@xxxxxxx>
Date: Sun, 11 Mar 2007 11:45:28 -0400

Hi,
I've noticed some "issues" with the project. Do a "slow step by step reading" of what's happening.


The procedure startup is executed automatically when you open the project. That by itself can be very fine... but the Start button ALSO starts the procedure startup. So startup is running twice in parallel universes.

Secondly, read what the online help has to say about waituntil... It executes its instruction (touching "t3 "t2) repeatedly until this reports true... and the program sort of "jams" on this instruction until it becomes true. It doesn't go any further. The next line is NOT executed until this first line is true..

Then, it seems to me that this method (touching) is not the best for determining that the puzzle is solved. If I just stack all the turtles in the center, they will all be touching but this does not represent a valid solution.

Forgive me for not providing a "solution" but I don't want to spoil the fun of exploring. I'm just pointing out what seems to "not work" in the current solution, so you can get out if this track and find a better one.

Suggestion: there is one "neglected" tab in MW: the PROCESS tab. Take a look at it and watch the processes that you are launching. That's a good place to catch issues such as the "startup and start" that I mentioned above.


Alain Tougas alain@xxxxxxx



Le 07-03-11 à 00:07, zehava wizman a écrit :

Hello forum!
I didn't get an answer that works .
what can be done inorder to check whether parts of puzzle are touching each other?
The instructions written here didn't do it (even I write each part fd 0 (manytimes) as Alain advised me)
To Startup
waituntil [touching? "t3 "t2] M freeze "t2 freeze "t3
waituntil [touching? "t3 "t4] M freeze "t4 freeze "t3
waituntil [touching? "t4 "t1] M freeze "t1 freeze "t4
waituntil [touching? "t5 "t1] M freeze "t1 freeze "t2
waituntil [touching? "t5 "t4] M freeze "t5 freeze "t4
waituntil [touching? "t5 "t2] M freeze "t5 freeze "t2
end
What should be done?
Thanks, Zehava Wizman


The fish are biting.
Get more visitors on your site using Yahoo! Search Marketing.


  • Previous by thread: Checking touching within Puzzle Game
  • Next by thread: EX Robotics Question

  • To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.


    © copyright 2001 - 2006