This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Suggestions
  •  » Add ability to switch off a sprite and all its' scripts

#1 2008-08-14 09:37:51

SonicPopsDad
Scratcher
Registered: 2008-07-30
Posts: 41

Add ability to switch off a sprite and all its' scripts

Apologies if this has been suggested before, or can be done in some way already...

Where I've got projects with lots of sprites and each sprite has lots of scripts, it can be quite time consuming to actually fiddle everything such that the sprite doesn't become active... which is something I quite often want when testing / debugging stuff...

It'd be nice to have a single switch to be able to turn off a sprite, and all it's associated scripts.

And maybe it could also help performance too?  I have occasionally been lazy  wink  and had scripts which must be running constantly and hogging resources... it'd therefore surely be beneficial to switch 'em on or off within the scripts during a run...?

Offline

 

#2 2008-08-14 09:40:00

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Add ability to switch off a sprite and all its' scripts

SonicPopsDad wrote:

Apologies if this has been suggested before, or can be done in some way already...

Where I've got projects with lots of sprites and each sprite has lots of scripts, it can be quite time consuming to actually fiddle everything such that the sprite doesn't become active... which is something I quite often want when testing / debugging stuff...

It'd be nice to have a single switch to be able to turn off a sprite, and all it's associated scripts.

And maybe it could also help performance too?  I have occasionally been lazy  wink  and had scripts which must be running constantly and hogging resources... it'd therefore surely be beneficial to switch 'em on or off within the scripts during a run...?

you could do
when (green flag) clicked
forever
   if < (spriteTurnedON) = (1) >
      do whatever

But I s'pose that would also take up space and performance. I agree: This would be an excellent idea.

Last edited by coolstuff (2008-08-14 09:40:13)

Offline

 

#3 2008-08-14 11:09:22

Bobby500
Scratcher
Registered: 2008-04-19
Posts: 1000+

Re: Add ability to switch off a sprite and all its' scripts

Agreed. I wanted this along time ago.

Offline

 
  • Index
  •  » Suggestions
  •  » Add ability to switch off a sprite and all its' scripts

Board footer