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

#1 2012-08-06 14:10:48

Martiscratch
Scratcher
Registered: 2012-05-04
Posts: 100+

block dectection

how do you detect a block that is passed by a player?


i've never played minecraft


http://signaturecraft.us/signatures/eJw1yDEOgCAMBdC9p_gnICphdnA18QwoNZIAJRTD9Z184-uP74gKjxIvxi3tzaii3ZA-PjPijdgxvBpjcCYeeOtKW2Ou3OhIAbuUIOUvpdnNtDhH1tL0AQVCHgk~.png

Offline

 

#2 2012-08-06 14:15:17

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: block dectection

Could you elaborate?


http://i50.tinypic.com/312u714.jpg

Offline

 

#3 2012-08-06 14:33:51

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: block dectection

Minecraft should have nothing to do with programming in Scratch.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#4 2012-08-06 16:24:12

gfchll
Scratcher
Registered: 2012-04-21
Posts: 100+

Re: block dectection

do you mean if sprite 1 passes the block, the block does something?


HELLO EVERYBODY!

Offline

 

#5 2012-08-06 16:31:02

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: block dectection

gfchll wrote:

do you mean if sprite 1 passes the block, the block does something?

If so, then you could use this:

when gf clicked
wait until <([x position v] of [sprite1 v]) < (x position)>
do whatever you want done before it passes the block
wait until <([x position v] of [sprite1 v]) > (x position)>
do whatever you want done after it passes the block


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#6 2012-08-08 03:55:40

Martiscratch
Scratcher
Registered: 2012-05-04
Posts: 100+

Re: block dectection

I mean the block says "I am a info block!" then "use arrow keys to move"


http://signaturecraft.us/signatures/eJw1yDEOgCAMBdC9p_gnICphdnA18QwoNZIAJRTD9Z184-uP74gKjxIvxi3tzaii3ZA-PjPijdgxvBpjcCYeeOtKW2Ou3OhIAbuUIOUvpdnNtDhH1tL0AQVCHgk~.png

Offline

 

#7 2012-08-08 04:02:37

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

Re: block dectection

when gf clicked
forever
if <touching [sign v]?>
say [I am an info block! Use the arrow keys to move!]
else
say (leave this blank)
end


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

Offline

 

#8 2012-08-09 04:13:37

Martiscratch
Scratcher
Registered: 2012-05-04
Posts: 100+

Re: block dectection

thanks


http://signaturecraft.us/signatures/eJw1yDEOgCAMBdC9p_gnICphdnA18QwoNZIAJRTD9Z184-uP74gKjxIvxi3tzaii3ZA-PjPijdgxvBpjcCYeeOtKW2Ou3OhIAbuUIOUvpdnNtDhH1tL0AQVCHgk~.png

Offline

 

#9 2012-08-09 10:18:35

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

Re: block dectection

You're most welcome.


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

Offline

 

Board footer