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

#1 2012-05-18 07:44:43

fatma12345
New Scratcher
Registered: 2012-05-18
Posts: 6

mouse sensation

hi everyone!
i need mouse sensation.for example i wanna sign object with mouse but i could not do it.A boy will ask where my arm ,child will click on the parts of body which was asked,then animation will say if it true "correct" if not "wrong pls try again ".
thanks already helping.

Offline

 

#2 2012-05-18 08:31:08

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

Re: mouse sensation

fatma12345 wrote:

Hi everyone!
I need a mouse sensing. For example, I want an object and a sign to be clicked with the mouse but I cannot do it. A boy will ask where the arm is, and the child will click on the parts of body which was asked, then the animation will say  "Correct." if it is true else "Wrong. Please try again.". Thanks for helping.

Structure in your sentences corrected. Is this what you're asking?


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

Offline

 

#3 2012-05-18 08:55:18

fatma12345
New Scratcher
Registered: 2012-05-18
Posts: 6

Re: mouse sensation

yes

Offline

 

#4 2012-05-18 10:12:00

bonechill
Scratcher
Registered: 2012-05-02
Posts: 500+

Re: mouse sensation

um.... i'll send sonicfan12p over, he good at this stuff.


http://www.planetminecraft.com/files/sigs/scratch9p_693826_sig.jpg

Offline

 

#5 2012-05-18 10:14:18

fatma12345
New Scratcher
Registered: 2012-05-18
Posts: 6

Re: mouse sensation

okey thanks a lot

Offline

 

#6 2012-05-18 10:15:20

bonechill
Scratcher
Registered: 2012-05-02
Posts: 500+

Re: mouse sensation

no problem.


http://www.planetminecraft.com/files/sigs/scratch9p_693826_sig.jpg

Offline

 

#7 2012-05-18 10:27:50

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

Re: mouse sensation

jontmy00 wrote:

fatma12345 wrote:

Hi everyone!
I need a mouse sensing. For example, I want an object and a sign to be clicked with the mouse but I cannot do it. A boy will ask where the arm is, and the child will click on the parts of body which was asked, then the animation will say  "Correct." if it is true else "Wrong. Please try again.". Thanks for helping.

Structure in your sentences corrected. Is this what you're asking?

For the stage:

when gf clicked
broadcast [start v]
say [Click on the arm.] for (5) secs

when I receive [start v]
if <(armClicked?) = [true]>
say [Correct.] for (2) secs
broadcast [start v]
else
say [Wrong. Please try again.] for (2) secs
broadcast [start v]
end
broadcast [start v]
For the arm:

when gf clicked
forever
if <<mouse down ?> and <touching [mouse-pointer v] ?>>
wait (0.1) secs
if <<mouse down ?> and <touching [mouse-pointer v] ?>>
set [armClicked? v] to [true]
else
set [armClicked? v] to [false]
One of the most rudimentary scripts and not so efficient because this only works if you only have 1 object to click. But this keeps it simple.  big_smile

Last edited by jontmy00 (2012-05-18 10:48:36)


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

Offline

 

#8 2012-05-18 10:44:06

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: mouse sensation

How jontmy00 did it would work for 1 thing. You would have to make a separate variable for each part you want to ask the viewer to point out. Each part would also have to be a separate sprite. As to how to coordinate all of that, that is a bit complex. I can help if you want me too, if not, I could attempt to explain it.


Why are the secret organizations getting all the attention?  mad

Offline

 

#9 2012-05-18 10:47:00

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

Re: mouse sensation

sonicfan12p wrote:

How jontmy00 did it would work for 1 thing. You would have to make a separate variable for each part you want to ask the viewer to point out. Each part would also have to be a separate sprite. As to how to coordinate all of that, that is a bit complex. I can help if you want me too, if not, I could attempt to explain it.

Yep. You could also use lists. I'm thinking how to use lists...


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

Offline

 

#10 2012-05-18 12:04:44

fatma12345
New Scratcher
Registered: 2012-05-18
Posts: 6

Re: mouse sensation

i really need help pls!!!

Offline

 

#11 2012-05-18 12:08:25

fatma12345
New Scratcher
Registered: 2012-05-18
Posts: 6

Re: mouse sensation

Also i could not do it what u suggested me.Especially for schene there is no any tell script with time Jonymt :SS

Offline

 

#12 2012-05-18 12:24:26

bonechill
Scratcher
Registered: 2012-05-02
Posts: 500+

Re: mouse sensation

um..... sonicfan12p will be over soon.


http://www.planetminecraft.com/files/sigs/scratch9p_693826_sig.jpg

Offline

 

#13 2012-05-18 12:30:41

fatma12345
New Scratcher
Registered: 2012-05-18
Posts: 6

Re: mouse sensation

Also i could not do it what u suggested me.Especially for schene there is no any tell script with time Jonymt :SS

Offline

 

Board footer