Category:Behaviors

Sprite stops doing the specified behavior.

(Opens YouTube in new tab)

How To Make A Sprite

For more information see Adding and Removing Behaviors.

Examples

Example 1

The phone will “ring” until the person touches and answers it.

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.

Parameters

NameDescription
behavior The selected the behavior to stop
sprite The sprite or sprite group stopping the behavior

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 documentation@code.org