Sprite stops doing the specified behavior.
(Opens YouTube in new tab)
For more information see Adding and Removing Behaviors
.
Examples
Example 1
The phone will “ring” until the person touches and answers it. Use the left arrow to move the person.
Example 2
If a sprite is doing multiple behaviors, individual behaviors can still be controlled and stopped. Click on the star to make it stop growing.
Syntax
removeBehaviorSimple
Parameters
Name | Type | Required? | Description |
---|---|---|---|
behavior | The selected behavior to stop | ||
sprite | The sprite or sprite group's behavior that is being stopped |
Tips
- Connect this block to events like
sprite clicked
. Code is executed quickly in Sprite Lab. If you tell a sprite to begin a behavior and then tell it to stop in the same sequence of code, there is not enough time to see the behavior in action.
Found a bug in the documentation? Let us know at support@code.org.