This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-06-22 00:10:12

sphie
New Scratcher
Registered: 2012-06-19
Posts: 3

will you help me with monty hall

will you help me how do open the door that you chose.

Offline

 

#2 2012-06-22 05:07:43

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: will you help me with monty hall

Please be more specific like explain what you must do to open the door.  hmm


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#3 2012-06-22 09:07:11

wahoo77
New Scratcher
Registered: 2012-06-17
Posts: 27

Re: will you help me with monty hall

use 2 different costumes  one of a closed door and one of an open door
then use this script
[scratchblocks]
when sprite1 clicked//the door sprite
change to costume[open door^]

Offline

 

#4 2012-06-22 09:14:00

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: will you help me with monty hall

You will need a variable "isDoorOpen?".

when gf clicked
set [isDoorOpen? v] to [False]
switch to costume [Door Closed v]
forever
if <<touching [mouse-pointer v]?> and <mouse down?>>
wait until <not <mouse down?>>
switch to costume [Door Open v]
set [isDoorOpen? v] to [True]
else
switch to costume [Door Closed v]
set [isDoorOpen? v] to [False]
end
Hope it helps!  smile

Last edited by jontmy00 (2012-06-22 09:17:06)


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#5 2012-06-22 09:15:33

wahoo77
New Scratcher
Registered: 2012-06-17
Posts: 27

Re: will you help me with monty hall

use 2 different costumes  one of a closed door and one of an open door
then use this script

when sprite1 clicked//the door sprite
set costume to[open door v]

Offline

 

#6 2012-06-22 09:16:04

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: will you help me with monty hall

wahoo77 wrote:

use 2 different costumes  one of a closed door and one of an open door
then use this script

when sprite1 clicked//the door sprite
set costume to[open door v]

That script is too buggy to be functional.  hmm


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

Board footer