Hi.
I developed my first scratch project and works fine in scratch ide but when I publish it, not all functions work in same manner. Why? Some tips?
I'm working with Scratch 1.4 on Windows Vista.
It's very strange because the block which doesn´t work is the "else" from an "if" and this block doesn´t have any special funcion moreover is very similar to the first part of the "then" of the same "if".
My project is published on http://scratch.mit.edu/projects/rduque/640955 ... When I write a wrong verb, It must sound and clear a list.
Any suggestions?
Offline
its a javascript error ! it happens alot .scratch converts 2 java and sometimes it gets an error when this happens and it dosent work!
Offline
I've got a FAQ article that trys to address this problem...
http://scratch.mit.edu/forums/viewtopic.php?id=15657
Offline
I found that the random number generator for floating point numbers doesn't work as expected online which could highlight a much more serious compatibility issue, and I think this just has to be fixed in the web player. See my project remix http://scratch.mit.edu/projects/Epixxware/643914 for an example.
Offline
I see what you are saying. You have Pick Random -1.0 to 1.0 and in Scratch it returns decimal values in tenths such as -.8, .3 and so on. In the Java Player I'm guessing it only is returning integers -1, 0, 1. That is a problem.
There is a work around...you could use
(Pick Random -10 to 10) / 10
instead. So it would return integers but then divide them by 10 to give you the decimal values you are looking for.
Offline
Thank to everybody for your suggestions but my problem It's not a random or visualization problem ... the script (program) is executing in a wrong way. I've published a screen of the script for you look it!!!
Look at red box, the "else" of the main "if" doesn´t execute at all, the list is not cleared and the sound is not played.
This the link to the script:
http://aitana.freehosting.net/Scratch/error.png
Any suggestion will be welcome.
Thanks.
Offline
rduque wrote:
Thank to everybody for your suggestions but my problem It's not a random or visualization problem ... the script (program) is executing in a wrong way. I've published a screen of the script for you look it!!!
Look at red box, the "else" of the main "if" doesn´t execute at all, the list is not cleared and the sound is not played.
This the link to the script:
http://aitana.freehosting.net/Scratch/error.png
Any suggestion will be welcome.
Thanks.
Hey rduque, freeservers seems to have a system against remote linking for images. Could you host the picture on an image sharing website such as Photobucket or Imageshack so that we may see your problem?

Offline
The image loads if you just put the url in the url bar and press enter
Offline
archmage wrote:
The image loads if you just put the url in the url bar and press enter
![]()
Huh, it looks like it's working now, even when clicking on it. I wonder why it didn't work before.

Offline