This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-01-26 06:59:51

TartanPanther
New Scratcher
Registered: 2013-01-11
Posts: 2

Help with sprites.

I'm making a game with quite a few sprites in it but whenever I make a new background all my sprites are in every background HELP!!!!

Offline

 

#2 2013-01-26 08:04:42

dechan
Scratcher
Registered: 2012-12-20
Posts: 69

Re: Help with sprites.

Every sprite we make is visible by default unless it's been told to hide and that hidden state is saved when you choose "save" when closing the project.

Every sprite you have should be hidden by default using:

when gf clicked
   hide
And then include a broadcast "listener" that will show it:
when i receive [show_me]
   show
And of course you will also want a method to make it hide itself again, unless it's always visible after a certain point:
when i receive [hide_me]
  hide
For projects with a large number of sprites those show_me and hide_me methods will need to have a "_#" in the listeners names, where #=the number of a particular sprite.

Last edited by dechan (2013-01-26 08:13:19)

Offline

 

Board footer