-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cast: Add Cast #605
Cast: Add Cast #605
Conversation
how did you get the reporter in the boolean input??? |
- Add default option - Don't allow "type of" to work in booleans
Ok I'm done now :) |
lol, also what does the "default" option do?
HOWW, its a reporter thoe. I am so confused |
default just doesn't cast the value, which allows it to function as a coupler :) |
But howw??????? |
i am going to have to lookup what the different between switch and if else does. (edit): |
Set the |
When defining the block, set "isDynamic" to true, and "output" to null (in that order)! Keep in mind, this method of achieving this does have the side effect of making any menu with "acceptReporters: false" not show up on the block, but it is the simplest method. |
Note: Just found this would also be ideal |
oml, so no more trickery lol |
thanks for your patience |
allowDropAnywhere is not live yet, but when it is, that part of the extension will just work |
Requires VM changes: TurboWarp/scratch-vm#145
Simple extension to use Scratch.Cast to convert inputs to strings, numbers, or booleans.
You can also get what type of value an input is.
Bonus: it works as a coupler for values ༼ つ ◕_◕ ༽つ