Skip to content

Commit c6fdd83

Browse files
committed
feat: undef detect button
1 parent b62379f commit c6fdd83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

button_detector.gs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ enum ScratchButtons {
3939
}
4040

4141
func button_detector() {
42+
# The button detector only works if you have the correct sprite position
4243
assert_eq x_position(), 0, "x_position(): ";
4344
assert_eq y_position(), 0, "y_position(): ";
4445
assert_eq size(), 100, "size(): ";
@@ -62,3 +63,5 @@ func button_detector() {
6263
switch_costume og_cos;
6364
return ScratchButtons.none;
6465
}
66+
67+
%undef DETECT_BUTTON

0 commit comments

Comments
 (0)