Closed seheon99 closed 1 year ago
I found that the forced was null when I dragged the sprite, and undefined when I use the "move random" block.
forced
null
undefined
But, scratch-vm denote that is boolean anyway, so I typed it (boolean | null)?.
boolean
(boolean | null)?
close: #14
This was the fault of my test environment. I didn't realize that the forced moved events are handled separately in scratch-gui.
scratch-gui
Thanks
I found that the
forced
wasnull
when I dragged the sprite, andundefined
when I use the "move random" block.But, scratch-vm denote that is
boolean
anyway, so I typed it(boolean | null)?
.close: #14