My latest: http://scratch.mit.edu/projects/EdnaC/129777 hangs up pretty early in the game when played on-line (Java), but works fine in presentation mode (Scratch). My bouncing ball project did the same, after a few edits, that one started working online (with the occasional "odd bounce").
Problem: I'm not sure what change got bouncing ball working, or what to do to get ShuttlePilot to run. Any ideas? I keep suspecting that a trig function is being translated to something that "flakes out" in Java, but there are no error indications, the project just stops.
-MrEd
Offline
The only function I know for a fact doesn't work in Java is the 10^x (anti-log) function. I didn't see anywhere in your project where you were using that function. So that's no help. However, the symptoms I ran into when I tried using 10^x on Java were just what you describe...a hang with no error message.
You are also using the Acos function which is a little unusual...I haven't tested that one out personally.
Offline
Switching to using Atan fixed the online issue, thanks much!
I still have an issue with the project, in that Scratch allowed me to scale up the "mother-ship" sprite, but the Java app doesn't do that. I may get around to fixing that now that the on-line version works...
-MrEd
Offline
So do we know for a fact that Acos has a problem? We should probably tell the Scratch team if we do.
Offline
I'd say that acos is the likely suspect. I looked for an old version of bouncing ball to see if I used acos in it, but I didn't retain any old ones. A quick project to cycle thru angles ( and convert to cosine and back to angle) is in order to check if that's the real problem.
-MrEd
Offline
EdnaC wrote:
-MrEd
Instead of putting -MrEd every time... put it in your signiture
Offline