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
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.
Offline
jerryz123 wrote:
<glide( )secs to x )y <change x by( <turn cw( )degrees>
Please don't spam.
Offline
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
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:
Offline