In this project
http://scratch.mit.edu/projects/tobydanger/984500
There is some rather essoteric code that checks for a collision in each "alien" sprite with a number of "shot" sprites. The name of the sprite to check is constructed by joining a shot name and a number in a variable. The variable is used in a touching block. It works in Scratch but not in the applet.
Here is the some psudo code because some of the option sare not availiable with the blocks option
set PlayerShotIndex to 0
repeat 5
change PlayerShotIndex By 1
set PlayerShotName to Join "PlayerShot" PlayerShotIndex
if Is Touching PlayerShotName
Do some stuff
end if
end repeat
Offline
Here is a simpler application that demonstrates the issue.
http://scratch.mit.edu/projects/tobydanger/986536
It works in Scratch but not on the website.
Offline
Basically the recent answer Uploaded Project Doesn't Run Properly provides already elements of response.
Your method is a smart simulation of array, it is surprising and interesting to see it works. But it just cannot work in Java, unless addressing precisely this kind of coding in the translator.
Offline
Here is what the Scratch Team had to say:
Scratch Team wrote:
Hi Toby,
Thanks for submitting this - and thanks especially for making a project that clearly demonstrates the bug! We've got this on our list of things to fix, and now we have a great test project. Hopefully we can get this one taken care of in the not too distant future.
Scratch On!
Amos
Scratch Team
Awesome !
Offline