![]() ![]() ![]() ![]() The way your saying would mean it wouldn’t bounce, it would reverse. What about if the ball hits the wall at a 45° angle. It will already be built into the code block I support! Also it’s not much different for a sprit bouncing around in a circle then a sprite bouncing around in a square “edge of screen” it will be the same just instead of bouncing on 4 edges (left, right, top, bottom of the screen) it will bounce on the inside edges of a loop.ĭy155 wrote:Actual workaround is: if then broadcast and wait move (10) steps end when I receive point in direction ((direction) + (180) This wouldn’t work at all unless the bouncing sprite (let’s say a bouncy ball) hits the other sprite (A wall) at exactly 90°. How does a sprite know how to bounce of right edge of the screen and the bottom of the screen? It’s a shortcut so we don’t have to put in the mile long codes for the direction and reflection and angle stuff. ScratchJahd2011 wrote:How would the sprite determine which direction it will bounce? What if the sprite where it bounces off to doesn't have a smooth surface? Or that it's a circle, surrounding the bouncing sprite? Sorry, but no support.I have a question for you. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |