I have devised a way to make projects automatically shut down when played offline. In other words the scratch window shuts when the green flag is clicked.
1. Make a hidden sprite. This is simple. Click "Paint new sprite". Look at the white dot that appears in the middle of the screen. Click it again. A new dot should have appeared. Click cancel in the paint window and the second white dot should still be there. Double click on it to open it up. It should not show up in the bottom with other sprites.
2. Download this project and put the script it has on to the secret sprite. Make sure you put the variable as "for this sprite only" so that it is completely unseen.
http://scratch.mit.edu/projects/MrMonopoly/1464697
3. Post your project and tell me if it works for you!
Offline
Did you try it?
Offline
Simply amazing! I've tried that and it works!
Offline
It doesn't close Scratch... all I see is a sprite named "hidden sprite". o.O What am I doing wrong? I downloaded the project, pressed the Green Flag, I wait five seconds, press the Stop Button. Nothing happens, besides my seeing the script glow white in the sprite "hidden sprite"
Offline
Magnie wrote:
It doesn't close Scratch... all I see is a sprite named "hidden sprite". o.O What am I doing wrong? I downloaded the project, pressed the Green Flag, I wait five seconds, press the Stop Button. Nothing happens, besides my seeing the script glow white in the sprite "hidden sprite"
Strange. It might take more than 5 seconds for your computer or your computer processes information very fast. What happens is the script makes a variable that multiplies by itself until it is infinity and then tries to multiply again. This causes Scratch to freeze and shut down. If your computer is very fast it could handle the freeze without closing. It might also be slow and need more than 5 seconds.
Offline
BigDolphin has found a better method! Check it out here!
Offline
Yes I suppose that is better but mine is more simple and would not be as suspicious to a hacker.
Offline
In my opinion, there is no use for this!
Why would we rather have a project play in a glitchy player rather than it's actual application?
Offline
Well, maybe you have a project that you would like to give away only with permission. In the coding set the mode to demo and post it online. Also make it play the full game if the mode is set to full but don't make anything set the mode to full. Then, add my script and people can play the demo all they want but they can't download the game to set the mode to full. They can only play the full game if you email it to them without this script.
Offline
It's a great idea, but your hidden sprite bit isn't going to work as the sprite will never stay hidden. Saving, uploading or downloading the project causes the sprite to reappear so short of keeping your project open and unsaved you're not going to keep it hidden.
Offline
sparks wrote:
It's a great idea, but your hidden sprite bit isn't going to work as the sprite will never stay hidden. Saving, uploading or downloading the project causes the sprite to reappear so short of keeping your project open and unsaved you're not going to keep it hidden.
That's not really true. Check out the project in my signature.
Offline
Broadcasting is also a fast way of multiplying infinity.
Offline
Magnie wrote:
It doesn't close Scratch... all I see is a sprite named "hidden sprite". o.O What am I doing wrong? I downloaded the project, pressed the Green Flag, I wait five seconds, press the Stop Button. Nothing happens, besides my seeing the script glow white in the sprite "hidden sprite"
Did you download it?
Offline
moco22 wrote:
hat up home dogs
Please stay on topic and don't necropost. Thank you!
Offline