Discuss Scratch

EletrixTricks
Scratcher
14 posts

Costumes Switching when a different sprite reaches somewheres

I'm trying to switch sprites when another sprite reaches a specific place but I cannot do it, I've searched the internet too, any ideas?




So like… Signature moment.
bcs320jn
Scratcher
100+ posts

Costumes Switching when a different sprite reaches somewheres

There is certain block that should help you:
([ v] of [Sprite1 v])

Apollo_Space25
Scratcher
10 posts

Costumes Switching when a different sprite reaches somewheres

Here are some scripts I made for this problem, I hope these can help

1. Background- You can set on if the background is on a specific number and if the character touches a specific spot
when green flag clicked
forever
if <> then
<<(backdrop #) = []> and <(y position) = []>>
switch costume to [ v]
end
end
Apollo_Space25
Scratcher
10 posts

Costumes Switching when a different sprite reaches somewheres

2. YOu can also set it if it is touching a specific color by changing backgrounds
when green flag clicked
forever
if <(backdrop #) = []> then
show

when green flag clicked
forever
if <touching color [#223f99] ?> then
switch costume to [ v]
Apollo_Space25
Scratcher
10 posts

Costumes Switching when a different sprite reaches somewheres

OR you could use cordinates

when green flag clicked
forever
if <<(x position) = []> and <(y position) = []>> then
switch costume to [ v]
EletrixTricks
Scratcher
14 posts

Costumes Switching when a different sprite reaches somewheres

bcs320jn wrote:

There is certain block that should help you:
([ v] of [Sprite1 v])
I can't find the block :c

So like… Signature moment.
teije9
Scratcher
76 posts

Costumes Switching when a different sprite reaches somewheres

EletrixTricks wrote:

bcs320jn wrote:

There is certain block that should help you:
([ v] of [Sprite1 v])
I can't find the block :c

the block is in the sensing space, and it says backdrop# of stage, you need to change the stage thing to a sprite you want to check the location of

when green flag clicked
forever
if( ( [ x position] of [sprite])= 500 then
switch costume to [ v]
end
end

hi im teije9 this is my signature
EletrixTricks
Scratcher
14 posts

Costumes Switching when a different sprite reaches somewheres

EletrixTricks wrote:

bcs320jn wrote:

There is certain block that should help you:
([ v] of [Sprite1 v])
I can't find the block :c
Nvm, found it

So like… Signature moment.

Powered by DjangoBB