This topic has already been reported as a suggestion to be moved, so please do not report it anymore.
This guide will explain how to detect whether a project is being played in the Java Player, Scratch 2.0/Flash Player, or Scratch 1.#. I suggested it as a FAQ topic, so I'm putting it here, so if it could be considered to be moved to FAQ that would be good.
To detect which player is being used, you can use the following script:
when green flag clicked set [player v]to [Scratch 1.#] wait ((0) / (0)) secs//Instead you can use sqrt(-1) set [player v]to [Online Java] obsolete!//See below for a place to get one of these set [player v]to [Scratch 2.0/Flash Player]Explanation
Last edited by benjamin2 (2012-08-02 06:10:30)
Offline
Edit: Oops, useless post. I hope this gets moved. I doubt you know this, but even after a day, there's no reply on a single topic of the FAQ forum.
Edit 2: Apart from the archived forums, both the CTTPW forum and the FAQ forum are the most inactive forums. Correct me of I'm wrong.
Last edited by jontmy00 (2012-08-02 06:12:02)
Offline
jontmy00 wrote:
Edit 2: Apart from the archived forums, both the CTTPW forum and the FAQ forum are the most inactive forums. Correct me of I'm wrong.
They are inactive, but so are some of the foreign language forums.
@BirdByte, you're welcome.
Offline
Very clever! But using obsolete features really isn't good coding practice - in any language. On the next language release, the feature may not be available or may not work the same. Using an obsolete feature is a risky move that may or may not continue to work as the language develops.
However, for those who chose to use it, it's a nice trick. It might be something that would fit well on the Scratch Wiki
Offline
Paddle2See wrote:
Very clever! But using obsolete features really isn't good coding practice - in any language. On the next language release, the feature may not be available or may not work the same. Using an obsolete feature is a risky move that may or may not continue to work as the language develops.
However, for those who chose to use it, it's a nice trick. It might be something that would fit well on the Scratch Wiki
There is a link to the Scratch Wiki article at the bottom of the main post.
Offline