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

#1 2012-11-27 10:12:15

Kris_Co
New Scratcher
Registered: 2012-11-16
Posts: 2

Costumes not switching?

Hello!  I'm working on a project and am having difficulty with the costumes not switching.  The project is at
http://scratch.mit.edu/projects/Kris_Co/2925777

What I don't understand is why the Blue bottles are the only ones that are behaving like they are supposed to be but all the other sprites share basically the same script.  To add to things, on the website the clear bottles actually switch costume but they don't play the sound, and in the scratch program they don't do anything!  The teacups behave the same way both online and in program: the sound gets played but the costume doesn't switch.  It's been driving me mad and would appreciate any thoughts. 

Thanks!

Offline

 

#2 2012-11-27 16:35:22

mathfreak231
Scratcher
Registered: 2012-10-24
Posts: 80

Re: Costumes not switching?

I see what's wrong.

switch to costume (join [Plate] (pick random (2) to (5)))
your costumes are called

plate2, plate3, plate4, plate5

instead of

Plate2, Plate3, Plate4, Plate5.

I guess case-sensitivity is the problem here.


~This sig is false~
I'm on teh wiki!

Offline

 

#3 2012-11-28 16:24:03

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: Costumes not switching?

Maybe you should just have

switch to costume (pick random (1) to (however many costumes there are))
(yes, switch to costume works with numbers of costumes not just names)

Last edited by joefarebrother (2012-11-28 16:24:46)


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#4 2012-12-01 09:39:13

Kris_Co
New Scratcher
Registered: 2012-11-16
Posts: 2

Re: Costumes not switching?

Thank you both!  I can't believe I overlooked something simple like that.  I still find it interesting though, that while they do change costumes in the Flash player on the website, they still don't on my computer.

Thanks again!

Offline

 

#5 2012-12-01 09:52:12

JakieMcCool
Scratcher
Registered: 2012-06-08
Posts: 27

Re: Costumes not switching?

Kris_Co wrote:

Thank you both!  I can't believe I overlooked something simple like that.  I still find it interesting though, that while they do change costumes in the Flash player on the website, they still don't on my computer.

Thanks again!

If that happens and all the scripts seem to be looking fine, save your project. Close your Scratch and reopen on the project. If the problem still isn't resolved then it is something in your scripts.


http://jgametechnology.webs.com/

Offline

 

Board footer