Discuss Scratch

reimega
Scratcher
8 posts

new programming block

Dear Scratch Team

I was wondering if you could make a block that could follow this example:

Let's pretend there are two spritesenny, and Jack. I am now in control of jack but I want to be in control of Denny instead

there is my example so please make the block I want

A New Scratcher
reimega
deck26
Scratcher
1000+ posts

new programming block

That's for you to code - it's hardly a single block unless you just switch costumes to switch characters! (That might work actually, just have both costumes for two sprites and get them both to switch at the same time but you'd need them to swap postions as well.)

There is a Suggestions forum but I wouldn't bother posting this there. It certainly doesn't belong here though.
reimega
Scratcher
8 posts

new programming block

deck26

I think it is more complicated than that

reimega
Atusiff
Scratcher
100+ posts

new programming block

when flag clicked
forever
if <(I should be controlling Denny) = [yes]> then
switch costume to [Denny v]
do Danny's moving script
end
end

when flag clicked
forever
if <(I should be controlling Jack) = [yes]> then
switch costume to [Jack v]
do Jack's moving script

hi! i'm atusiff – have a great day!
deck26
Scratcher
1000+ posts

new programming block

reimega wrote:

deck26

I think it is more complicated than that

reimega
In what way? How would a single block manage that in that case?
reimega
Scratcher
8 posts

new programming block

nevermind I deleted the project entirely
reimega
Scratcher
8 posts

new programming block

jhjln87_johnw wrote:

when flag clicked
forever
if <(I should be controlling Denny) = [yes]> then
switch costume to [Denny v]
do Danny's moving script
end
end

when flag clicked
forever
if <(I should be controlling Jack) = [yes]> then
switch costume to [Jack v]
do Jack's moving script
nice!

Powered by DjangoBB