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

#1 2009-02-16 11:50:37

CDromatron
Scratcher
Registered: 2009-02-09
Posts: 23

standing on a block?

I'm trying to make a stickman (black)  stand on a block (blue) but fall when off the block.
I try but he won't fall.   help!!!!!!!!

Offline

 

#2 2009-02-16 11:54:12

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: standing on a block?

if the block is a sprite, have a script like this:


forever if not touching sprite 1 repeat until touching block hange y by -4


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

#3 2009-02-16 12:53:53

alexpja
Scratcher
Registered: 2008-06-12
Posts: 100+

Re: standing on a block?

<forever if> <<  <not>  >><touching[ sprite1 <repeat(  until <touching[ block(( y </> 4 ))

is this what u mean bosox?


Sorry for never being on... I'm on Onverse now. So get inside, and Onverse yourself. Cya 'round.

Offline

 

#4 2009-02-16 12:59:18

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: standing on a block?

Copy the scripts from this project
http://scratch.mit.edu/projects/archmage/72848


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#5 2009-02-16 13:24:54

CDromatron
Scratcher
Registered: 2009-02-09
Posts: 23

Re: standing on a block?

thanks for all your help. I will repay your help.

Offline

 

#6 2009-02-18 20:25:43

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: standing on a block?

alexpja wrote:

<forever if> <<  <not>  >><touching[ sprite1 <repeat(  until <touching[ block(( y </> 4 ))

is this what u mean bosox?

yeah except not /4,   u need a -4


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

Board footer