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

#1 2013-04-18 11:46:46

pietro99
New Scratcher
Registered: 2013-04-18
Posts: 1

Help on first project

Dear all scratchers, I have some problems on this project:
http://scratch.mit.edu/projects/pietro99/3269354

I also wrote there to ask for help.
Thank you very much !

Offline

 

#2 2013-04-18 12:13:33

Smozzick
Scratcher
Registered: 2011-10-23
Posts: 100+

Re: Help on first project

the block

<sensor [button pressed v]?> 
detects when the button is pressed.

As far as I know.


---


So what you do is put this:

if <sensor [button pressed v]?>
set [oldtimer v] to (timer)
wait until <not <sensor [button pressed v]?>>
set [timepressed v] to <(timer) - (oldtimer)>
if <(timepressed) > [however many number of seconds]>
line
else
dot
end
You may have to mix it in somehow but I'm sure you can get it to work that way.

Last edited by Smozzick (2013-04-18 12:15:08)


http://i50.tinypic.com/ded8m.png

Offline

 

Board footer