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

#1 2010-04-22 08:25:06

jakethegunner
Scratcher
Registered: 2010-04-21
Posts: 9

Checking if mouse has been clicked

Hello ,

at the moment im using

<if> <mouse down?><touching[ <<  <and>  >>
to see if the user has clicked on my sprite ,i only want it to count once every click , at the moment the user could just hold the mouse down and it would carry on counting the points

( im not sure how the forum blocks work yet xD , i hope you understand what im trying to show you guys )

thanks

jake.

Last edited by jakethegunner (2010-04-22 08:25:42)

Offline

 

#2 2010-04-22 08:29:08

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Checking if mouse has been clicked

Use:
[blocks]
<if><< <mouse down?> <and> <touching[ sprite1 >>
<wait until><<  <not> <mouse down?> >>

Last edited by SeptimusHeap (2010-04-22 08:30:17)


http://i46.tinypic.com/dw7zft.png

Offline

 

#3 2010-04-22 08:59:24

jakethegunner
Scratcher
Registered: 2010-04-21
Posts: 9

Re: Checking if mouse has been clicked

Worked a charm , Thanks  big_smile

Offline

 

#4 2010-04-22 16:02:41

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Checking if mouse has been clicked

jakethegunner wrote:

Worked a charm , Thanks  big_smile

No problem  smile


http://i46.tinypic.com/dw7zft.png

Offline

 

Board footer