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

#1 2009-01-31 14:47:32

LWSrocks
Scratcher
Registered: 2009-01-31
Posts: 8

I need help with something...

Hi, I'm LWSrocks and I need a little help with a project on Scratch... You see, I'm making this game called Bighead Bob and the Kiddie Ball Pit of Doom, and when Bob collides into a ball, he just goes right through it. But I want Bob to bounce off of it. Could I get some help?

Offline

 

#2 2009-01-31 18:42:13

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: I need help with something...

Try this:
<when green flag clicked>
<forever>
<if><touching[ ball
  <point in direction( (( 180 <-> <direction> ))
<end>
<end>

[/blocks]This only works if you're using the <move(  )steps> [/blocks]block.


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#3 2009-01-31 19:41:30

jerryz123
Scratcher
Registered: 2009-01-31
Posts: 1

Re: I need help with something...

<glide(  )secs to x sad   )y sad  <change x by( <turn cw(  )degrees>

Offline

 

#4 2009-01-31 22:31:25

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: I need help with something...

jerryz123 wrote:

<glide(  )secs to x sad   )y sad  <change x by( <turn cw(  )degrees>

Please don't spam.


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#5 2009-02-01 13:44:20

tgcf14
Scratcher
Registered: 2008-12-03
Posts: 2

Re: I need help with something...

:cool

Offline

 

#6 2009-02-01 23:16:27

LWSrocks
Scratcher
Registered: 2009-01-31
Posts: 8

Re: I need help with something...

Thank you.

Offline

 

#7 2009-02-02 22:10:44

LWSrocks
Scratcher
Registered: 2009-01-31
Posts: 8

Re: I need help with something...

hmnwilson wrote:

Try this:
<when green flag clicked>
<forever>
<if><touching[ ball
  <point in direction( (( 180 <-> <direction> ))
<end>
<end>

[/blocks]This only works if you're using the <move(  )steps> [/blocks]block.

What do you mean using the move steps block?

Offline

 

#8 2009-02-03 17:32:56

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: I need help with something...

LWSrocks wrote:

hmnwilson wrote:

Try this:
<when green flag clicked>
<forever>
<if><touching[ ball
  <point in direction( (( 180 <-> <direction> ))
<end>
<end>

[/blocks]This only works if you're using the <move(  )steps> [/blocks]block.

What do you mean using the move steps block?

The only way the script would work is if you're using this block for the movement:
http://www.freeimagehosting.net/uploads/43f064dd9a.png


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

Board footer