Skip to content

Commit

Permalink
Added go to mouse support
Browse files Browse the repository at this point in the history
  • Loading branch information
Secret-chest committed Nov 5, 2021
1 parent 120de91 commit 2fe7706
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion scratch.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def execute(block, s):
return s.target.blocks[nextBlock]

if opcode == "motion_goto_menu":
print(block.getFieldValue("to"))
if block.getFieldValue("to") == "_mouse_": # go to [mouse pointer v]
newX, newY = pygame.mouse.get_pos()
newX = newX - WIDTH // 2
Expand Down

0 comments on commit 2fe7706

Please sign in to comment.