Are the walls the edges of a sprite, or the stage? The "if on edge bounce" block only bounces for the edges of the screen.
If you want to bounce off an object, you need "if touching (object) turn 90 degrees" (that is the simplest way, but there are more advanced ways that work much better than that, but it might take a while to write one down in an understandable way)
Last edited by Kileymeister (2010-02-17 20:13:52)
Offline
Kiley is right.
In other words......
1.Use the steps block instead of the change x/change y blocks.
2.Say something like:
<when green flag clicked>
<forever>
<if>
<touching color[ ?
<turn cw( 165 )degrees>
<move( ? )steps>
<end>
<end>
Replace any ? in the example with a custom modification.
If that doesn't make sense, please tell me.
Offline
I think I see your problem - is the ball moving to the edge of the screen, without anything to stop it?
Here's a simple script that has the sprite move until it hits the edge, then point in the opposite direction and continue. You can try adapting the script to your liking. Here's the script:
Any questions?
Last edited by Jonathanpb (2010-02-19 00:49:30)
Offline