Discuss Scratch

SAM-20061980
Scratcher
6 posts

Just need help

https://scratch.mit.edu/projects/703554913/
This is my project, see it , it is a multiplayer game , how to make Pico and giga to kick the ball automatically

I promise that the person who helps me will be surely given credit
Mefen753
Scratcher
37 posts

Just need help

OK I know how I can help you.
Go to Pico and put a
when green flag clicked
forever
if <touching Ball> then
broadcast [Kick Ball (Pico)]
wait (.5) secs
end
end

And then put a
when I receive [Kick Ball (Pico)]
point in direction ( (pick random (...) to (...))
in the ball and then after that you want to make Giga hit the ball then you make a new broadcast that looks like this
broadcast [Kick Ball (Giga)]
And copy the code from Pico into Giga and switch the
broadcast [Kick Ball (Pico)]
into a
broadcast [Kick Ball (Giga]
And in the ball sprite duplicate the script that makes the ball turn when it hits the player and switch it to say
when I receive [Kick Ball (Giga)]

Last edited by Mefen753 (June 11, 2022 14:39:39)

SAM-20061980
Scratcher
6 posts

Just need help

Thank you bro

Powered by DjangoBB