Search code examples
mit-scratch

I have 4 identical sprites that don't do the same thing, Why?


I have four identical scratch sprites, but only one of them do what I expect and I need to know why so I can continue with my project

I have tried reloading the page multiple times but it still won't work

When (Green Flag) clicked forever: if touching mouse-pointer? then: set (Enclosure Hover) to 1 else: set (Enclosure hover) to 0

I expect this to change Enclosure Hover to 1 when the mouse is touching it but it doesn't change it at all.


Solution

  • If the variable is global, all sprites will compete to change it. Hope that helps!