Discuss Scratch

GamesMast3r
New to Scratch
11 posts

Help needed stopping scripts!

Okay so I have been compiling my project and running it without problems or lag on my Gaming PC but I would like to reduce the lag of the .exe files or even in the editor itself on my laptop. To do so I was wondering if it was possible using the stop scripts block to stop all scripts on a sprite when it has finished it's purpose. Like lets say I had a sprite called Bob the start of the game. Bob dies and I no longer need the scripts on his sprite to be active could I broadcast ‘Bob Dead’ and have all the scripts on the Bob sprite stop without affecting the rest of the sprites?

-Any help would be 'preciated
Thanks :p
firedrake969_test
Scratcher
500+ posts

Help needed stopping scripts!

This probably goes in Help with Scripts.

This script works to stop all scripts on one sprite:
stop [other scripts in sprite v]
stop [this script v]

Alt account of Firedrake969.

Rocket II: A black and white bitmap space game!

I seek not fame, but education.

;
GamesMast3r
New to Scratch
11 posts

Help needed stopping scripts!

Haha thanks didn't notice that before, feel like such a N00B :p
Really helpful, have a follow.
GamesMast3r
New to Scratch
11 posts

Help needed stopping scripts!

firedrake969_test wrote:

This probably goes in Help with Scripts.

This script works to stop all scripts on one sprite:
stop [other scripts in sprite v]
stop [this script v]

I was using an out-dated version of scratch so I only had access to stop all and stop script.

Powered by DjangoBB