![]() ![]() ![]() If we want the Sprite to follow the mouse. However, they are often rejected, because implementing such a block for general shapes requires calculus. To make the Sprite face the mouse pointer, you need to use the following blocks: 1. Some users in the suggestions forum have requested a generalized bounce::motion block, which would allow sprites to bounce when they collide with other sprites or with colors. Turn cw (pick random (-10) to (10)) degreesīounce Block See also: List of Block Workarounds test if the sprite touches the edges of the stage and if so let it bounce off change the way sprite bounces off the edge: left-right, all around or don’t rotate. When the user wants a specific sprite to be in the screen without touching the edge.I don't know how to do it if it hits on the top/bottom of the second sprite. ![]() Allowing sprites to bounce off the screen: If it is bouncing off of the right or left of the sprite, you can do: when clicked forever move 10 steps if touching Other Sprite then point in direction direction -1 move 10 steps say This makes it so that the Sprite isn't toughing the other Sprite.Preventing a sprite from partially leaving the screen (often, this is followed by the Point in Direction block to stop reflection). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |