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

#1 2008-07-20 21:43:57

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

IF on Edge different block

Sometimes, when I have the   <if on edge, bounce>   block, I wanna make it do something else after it hits the edge, not before. So would it be possible to have it so the script keeps checking, and only when it's on the edge, it will use th rest of the blocks liek this:


<forever>
<move(  )steps>
<if on edge, bounce>
<next costume>
<end>

It would keep moving until it hit the wall, where it would bounce and than change costumes. I know there are harder ways, but it's just a suggestion. Like If_on_Edge_Bounce_and_do_this


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#2 2008-07-20 22:40:41

deatheater
Scratcher
Registered: 2008-04-11
Posts: 1000+

Re: IF on Edge different block

u can do this for now  smile 
<when green flag clicked>
<forever>
<move( however many steps )steps>
<if><touching[ edge
<if on edge, bounce>
<next costume>
<repeat until><<  <not>  >><touching[ edge
<move( however many steps )steps>
<end>
<end>
<end>

smile

Last edited by deatheater (2008-07-20 23:01:13)

Offline

 

#3 2008-07-20 22:49:50

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: IF on Edge different block

deatheater wrote:

u can do this for now  smile 
<when green flag clicked>
<forever>
<move( however many steps )steps>
<if><touching[ edge
<if on edge, bounce>
<next costume>
<end>
<end>

smile

Never thought of that


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

Board footer