Discuss Scratch

bassicalyrandomguy
Scratcher
17 posts

help with script

im doing a coronavirus simulation game and im have a problem. Im do if sprite “person” (healthy man) touching sprite “sick” sprite “person” changing costume to “sick-costume” (looks like a sick) but sprite dont changing costume. P.S. this game have a cloned sprites and im do a same command here. again P.S. this script
if <touching [ sick] ?> then
switch costume to [ sick-costume]
end
deck26
Scratcher
1000+ posts

help with script

We need to see what you're doing - please share the project or at least identify the project number.
jeb_kerman457
Scratcher
100+ posts

help with script

one way it to make the sick clones have a outline of green for example and you can use this code:
if <touching color [put the outline color here] ?> then
switch costume to [sick]
end
bassicalyrandomguy
Scratcher
17 posts

help with script

deck26 wrote:

We need to see what you're doing - please share the project or at least identify the project number.
ok
bassicalyrandomguy
Scratcher
17 posts

help with script

jeb_kerman457 wrote:

one way it to make the sick clones have a outline of green for example and you can use this code:
if <touching color [put the outline color here] ?> then
switch costume to [sick]
end
thanks
bassicalyrandomguy
Scratcher
17 posts

help with script

deck26 wrote:

We need to see what you're doing - please share the project or at least identify the project number.
and for you https://scratch.mit.edu/projects/650074175

Last edited by bassicalyrandomguy (Feb. 24, 2022 17:26:43)

T0RRENT_
Scratcher
100+ posts

help with script

It looks like you forgot to put the <touching (sick)> boolean in the clone script:

bassicalyrandomguy
Scratcher
17 posts

help with script

T0RRENT_ wrote:

It looks like you forgot to put the <touching (sick)> boolean in the clone script:

uh sorry im just deleted this and i forgot to put in a block
T0RRENT_
Scratcher
100+ posts

help with script

I also found a solution, make these scripts for the clones:

bassicalyrandomguy
Scratcher
17 posts

help with script

T0RRENT_ wrote:

I also found a solution, make these scripts for the clones:

*facepalm* ah yes
bassicalyrandomguy
Scratcher
17 posts

help with script

bassicalyrandomguy wrote:

T0RRENT_ wrote:

I also found a solution, make these scripts for the clones:

*facepalm* ah yes
uh this is not working
bassicalyrandomguy
Scratcher
17 posts

help with script

bassicalyrandomguy wrote:

bassicalyrandomguy wrote:

T0RRENT_ wrote:

I also found a solution, make these scripts for the clones:

*facepalm* ah yes
uh this is not working
now i did 100% like in the picture and it works
T0RRENT_
Scratcher
100+ posts

help with script

ok you dont have to give credit im glad it works!

Last edited by T0RRENT_ (Feb. 24, 2022 18:07:28)

Powered by DjangoBB