Discuss Scratch

olahamigosandpi
Scratcher
5 posts

Costume Changing Problems

I've got a simple script that says:
when green flag clicked
forever
switch costume to (Screen Value)
end

So, when I set screen value to a different number the costume should change but it dosen't.
CoolLionMan
Scratcher
1000+ posts

Costume Changing Problems

did you click the flag? how many costume are there? it'll help if you send the link (it doesn't have to be shared)
olahamigosandpi
Scratcher
5 posts

Costume Changing Problems

I click the flag like 4 times, the sprite that I want to change costumes has 3 costumes, and there is a total of 34 costumes and 2 backdrops. If I send the link and it is unshared, how will you see it?
cat_tap
Scratcher
1000+ posts

Costume Changing Problems

olahamigosandpi wrote:

I click the flag like 4 times, the sprite that I want to change costumes has 3 costumes, and there is a total of 34 costumes and 2 backdrops. If I send the link and it is unshared, how will you see it?
With some sorta program, but i don't know how to. i'd share it anyway.
liamboyhalo
Scratcher
500+ posts

Costume Changing Problems

olahamigosandpi wrote:

I click the flag like 4 times, the sprite that I want to change costumes has 3 costumes, and there is a total of 34 costumes and 2 backdrops. If I send the link and it is unshared, how will you see it?
You can use Turbowarp to view unshared projects.
CoolLionMan
Scratcher
1000+ posts

Costume Changing Problems

olahamigosandpi wrote:

I click the flag like 4 times, the sprite that I want to change costumes has 3 costumes, and there is a total of 34 costumes and 2 backdrops. If I send the link and it is unshared, how will you see it?
there is a thing called TurboWarp which is used for making projects run faster, and can also be used to view unshared projects
liamboyhalo
Scratcher
500+ posts

Costume Changing Problems

olahamigosandpi wrote:

I click the flag like 4 times, the sprite that I want to change costumes has 3 costumes, and there is a total of 34 costumes and 2 backdrops. If I send the link and it is unshared, how will you see it?
Maybe it's because you spammed the flag? I don't really know how to help.
DyteskyYT
Scratcher
2 posts

Costume Changing Problems

If changing the costumes using a variable doesn't work, the problem could be that your costume names in the sprite aren't numbers. Will that work?

Last edited by DyteskyYT (Feb. 8, 2021 01:45:18)

cat_tap
Scratcher
1000+ posts

Costume Changing Problems

DyteskyYT wrote:

If changing the costumes using a variable doesn't work, the problem could be that your costume names in the sprite aren't numbers. Will that work?
No, I've done it. It will switch to that costume number.
Is it stuck on the last question?
-Patternpop-
Scratcher
81 posts

Costume Changing Problems

yeah
i have that problem in ma game
mysterious-neutron
Scratcher
1000+ posts

Costume Changing Problems

Give the link of the project
mybearworld
Scratcher
1000+ posts

Costume Changing Problems

It could be that it tried to set the costume name. Try
when green flag clicked
forever
switch costume to ((Screen Value) + (0))
end
That may be confusing, but in non-scratch programming languages strings and numbers are different - and as Scratch is written in one, things like that can happen.
If that doesn't work, then like the others, a link would be helpful.

Last edited by mybearworld (Feb. 8, 2021 06:10:24)

PoIygon
Scratcher
1000+ posts

Costume Changing Problems

Link of game now

Sorry, you have to wait 60 seconds between posts.
-Patternpop-
Scratcher
81 posts
-Patternpop-
Scratcher
81 posts

Costume Changing Problems

The skill counter
mightydeep
Scratcher
42 posts

Costume Changing Problems

olahamigosandpi wrote:

I've got a simple script that says:
when green flag clicked
forever
switch costume to (Screen Value)
end

So, when I set screen value to a different number the costume should change but it dosen't.
NOTE: Do not do like this as scratch uses numbers in a “switch costume to” block. Scratch wiki has a different working method :-
repeat until <(costume name) = (Screen Value)>
next costume
end
olahamigosandpi
Scratcher
5 posts

Costume Changing Problems

mightydeep wrote:

olahamigosandpi wrote:

I've got a simple script that says:
when green flag clicked
forever
switch costume to (Screen Value)
end

So, when I set screen value to a different number the costume should change but it dosen't.
NOTE: Do not do like this as scratch uses numbers in a “switch costume to” block. Scratch wiki has a different working method :-
repeat until <(costume name) = (Screen Value)>
next costume
end

Yo thanks dude, It worked!
cat_tap
Scratcher
1000+ posts

Costume Changing Problems

mightydeep wrote:

olahamigosandpi wrote:

I've got a simple script that says:
when green flag clicked
forever
switch costume to (Screen Value)
end

So, when I set screen value to a different number the costume should change but it dosen't.
NOTE: Do not do like this as scratch uses numbers in a “switch costume to” block. Scratch wiki has a different working method :-
repeat until <(costume name) = (Screen Value)>
next costume
end
That's:
when green flag clicked
repeat until <(costume [name v]::looks) = (Screen Value)>
next costume
end

Powered by DjangoBB