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

#1 2012-09-26 13:03:57

Jodymoses
Scratcher
Registered: 2012-05-03
Posts: 100+

Scratchblocks

Anyone know how to make the sensor and motion blocks?


http://i46.tinypic.com/2hxwx9s.png
I Have Huge Ideas, But Only If You Listen And Talk To Me...

Offline

 

#2 2012-09-26 13:09:46

destructo-serpent
Scratcher
Registered: 2012-07-25
Posts: 1000+

Re: Scratchblocks


move [5] steps


<key [space v] pressed?>
http://wiki.scratch.mit.edu/wiki/Block_Plugin/Syntax

Last edited by destructo-serpent (2012-09-26 13:10:26)

Offline

 

#3 2012-09-27 09:22:49

Jodymoses
Scratcher
Registered: 2012-05-03
Posts: 100+

Re: Scratchblocks

I mean like set y change x timer mouse x


http://i46.tinypic.com/2hxwx9s.png
I Have Huge Ideas, But Only If You Listen And Talk To Me...

Offline

 

#4 2012-09-27 17:08:31

legobob23o
Scratcher
Registered: 2012-06-22
Posts: 500+

Re: Scratchblocks

This would probably belong in Help With Scripts.

Offline

 

#5 2012-09-27 17:17:59

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Scratchblocks

Jodymoses wrote:

I mean like set y change x timer mouse x

Here they are:

set y to (x)
set x to (y)

reset timer
if <<(mouse x) and (mouse y)> and (mouse down?)>
 change x by (z)
end

Last edited by ErnieParke (2012-09-27 17:20:07)


http://i46.tinypic.com/35ismmc.png

Offline

 

#6 2012-09-27 17:22:15

Gravitation
New Scratcher
Registered: 2012-09-26
Posts: 500+

Re: Scratchblocks

ErnieParke wrote:

Jodymoses wrote:

I mean like set y change x timer mouse x

Here they are:

set y to (x)
set x to (y)

reset timer
if <<(mouse x) and (mouse y)> and (mouse down?)>
 change x by (z)
end

And

(timer)

Offline

 

#7 2012-09-28 04:06:12

Jodymoses
Scratcher
Registered: 2012-05-03
Posts: 100+

Re: Scratchblocks

Whats the code


http://i46.tinypic.com/2hxwx9s.png
I Have Huge Ideas, But Only If You Listen And Talk To Me...

Offline

 

#8 2012-09-28 04:58:49

chongyian
Scratcher
Registered: 2012-05-08
Posts: 1000+

Re: Scratchblocks

this should be in the help with scripts forum...

Offline

 

#9 2012-09-28 06:01:58

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Scratchblocks

Jodymoses wrote:

I mean like set y change x timer mouse x

Code:

[scratchblocks]
set y to (x)
set x to (y)

reset timer
if <<(mouse x) and (mouse y)> and (mouse down?)>
 change x
end
(timer)
[/scratchblocks]

Here's the code ^^.

Last edited by ErnieParke (2012-09-28 06:03:24)


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer