Discuss Scratch
- Discussion Forums
 - » Help with Scripts
 - » Does Scratch Have a "Last costume" block?
        
         
- soilmilk
 - 
                            
						
						
                            New Scratcher
                        
						
						 
3 posts
Does Scratch Have a "Last costume" block?
I'm trying to make it so my sprite changes to its last costume when q is pressed. Since my sprite has 3 costumes, it would be hard to differentiate which costume would be the last. Could someone help me?
                        
                        
                    - walesrygby
 - 
                            
						
						
                            Scratcher
                        
						
						 
13 posts
Does Scratch Have a "Last costume" block?
ok i think there is a button where when a certain button i pressed it changes to the next costume 
                        
                        
                    - Oumuamua
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
Does Scratch Have a "Last costume" block?
I'm trying to make it so my sprite changes to its last costume when q is pressed. Since my sprite has 3 costumes, it would be hard to differentiate which costume would be the last. Could someone help me?
If you have not a costume named as “0” you can switch to last by
switch costume to (( ) + ( ))
Last edited by Oumuamua (May 19, 2020 19:19:58)
- Locomule
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
Does Scratch Have a "Last costume" block?
deleted
                        
                            Last edited by Locomule (May 19, 2020 20:26:50)
- Oumuamua
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
Does Scratch Have a "Last costume" block?
deletedHi @Locomule
If you want to count amount of costumes just do this
switch costume to (() + ())
set [amount of costumes v] to (costume #)
In case you don't have a costume called “0” other than the last, of course.
Greetings.
Last edited by Oumuamua (May 19, 2020 20:57:07)
- Oumuamua
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
Does Scratch Have a "Last costume" block?
In Spain there is an ancient said: “A la cama no te irás sin saber una cosa más”
Everyday i learn something new.
Regards.
                        
                        
                    Everyday i learn something new.
Regards.
- AGson08
 - 
                            
						
						
                            Scratcher
                        
						
						 
15 posts
Does Scratch Have a "Last costume" block?
I needed this
                        
                        
                    when green flag clicked
forever
broadcast [Thanks]
end
- dhritithescratcher
 - 
                            
						
						
                            Scratcher
                        
						
						 
100+ posts
Does Scratch Have a "Last costume" block?
do this:
                        
                        
                    when [ v] key pressed
switch costume to [ v]
- dhritithescratcher
 - 
                            
						
						
                            Scratcher
                        
						
						 
100+ posts
Does Scratch Have a "Last costume" block?
and if the last costume is say, Dimorna, (random thought) say switch costume to Dimorna
And the when ___ key pressed could become when i recieve ____ or when flag clicked etc.
                        
                        
                    And the when ___ key pressed could become when i recieve ____ or when flag clicked etc.
- TheAnomalousPseudo
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
Does Scratch Have a "Last costume" block?
I needed thiswhen green flag clicked
forever
broadcast [Thanks]
end
do this:when [ v] key pressed
switch costume to [ v]
Please don't necropost. It is good that the topic was helpful, but you just bumped a problem that has long been solved to the top of the list of forums.
- dhritithescratcher
 - 
                            
						
						
                            Scratcher
                        
						
						 
100+ posts
Does Scratch Have a "Last costume" block?
I'm sry… i thought this was still active
                        
                        
                    - Discussion Forums
 - » Help with Scripts
 - 
            » Does Scratch Have a "Last costume" block? 
         






