Triggering Hat Blocks

How do I trigger a hat block?

Are you talking about a custom hat block? If so, there should be a report [] :: control cap block in the definition when you create the custom hat block. You should use a Boolean as an input ( report <some Boolean::operators> :: control cap ), because the custom hat block will run the code underneath it if the Boolean reports True.

There are two trigger methods: triggering once and waiting for the Boolean to report false, or triggering until the Boolean reports false.

Here is a hat block that runs once a sprite is showing:
Hat Block
This hat will run the code underneath when the once the sprite has shown. It will wait until the sprite hides then shows again until it runs.

Here is the other variant:
Other Hat Block)
This hat block runs whenever a sprite is showing. If it is forever showing, it will forever run. To make a block like this, right-click the hat-block in the definition and check “condition”.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.