We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b62379f commit c6fdd83Copy full SHA for c6fdd83
button_detector.gs
@@ -39,6 +39,7 @@ enum ScratchButtons {
39
}
40
41
func button_detector() {
42
+ # The button detector only works if you have the correct sprite position
43
assert_eq x_position(), 0, "x_position(): ";
44
assert_eq y_position(), 0, "y_position(): ";
45
assert_eq size(), 100, "size(): ";
@@ -62,3 +63,5 @@ func button_detector() {
62
63
switch_costume og_cos;
64
return ScratchButtons.none;
65
66
+
67
+%undef DETECT_BUTTON
0 commit comments