Hi!
Can somebody explain me, why there is no "when touching SpriteX" control block in Scratch?
I'm finding myself always writing code like this:
when gf clicked forever if <touching [SpriteX]?> doSomething endThis looks more intuitive to me:
when [SpriteX] clicked doSomethingbut instead of "clicked", it would say "touched this".
Offline
This would probably be more efficient if you have multiple detection scripts for multiple sprites:
when gf clicked forever if (touching [sprite v]?) do something end if (touching [sprite2 v]?) do something end if (touching [sprite3 v]?) do something end endBut it does seem kind of silly to not have one. But it would probably be less strain on Scratch if you do it the above way. That way your aren't running a separate script for every single sprite detection.
Offline
You could use the above code, but if you modify Scratch, you can add a "when <>" hat block. You can use that if you are not uploading the project to the scratch website. If you are going to upload to the Scratch website, you need something like the above, which is slower.
Offline