Discuss Scratch

Supreme_Weeb
Scratcher
51 posts

how do i make a sprite completely stop moving

I need a sprite to stand completely still once it randomly switches to its other costume but idk how to do it
Queer_Royalty
Scratcher
1000+ posts

how do i make a sprite completely stop moving

If you know where the sprite is standing, perhaps you could run your script, and then put this after it?
forever
go to x: (...) y: (...)
end
holynootnoot
Scratcher
9 posts

how do i make a sprite completely stop moving

Supreme_Weeb wrote:

I need a sprite to stand completely still once it randomly switches to its other costume but idk how to do it
you need to do some stuff in the coding like, when ____ clicked stop sprite or something like that
-UniverseCoder-
Scratcher
100+ posts

how do i make a sprite completely stop moving

Wrong forum. Reported to be moved to Help with Scripts. Someone will help you out there
ItsMe-XTV-
Scratcher
100+ posts

how do i make a sprite completely stop moving

Try this
when I receive [Whatever broadcast you want (should be activated when you want the person to stop moving) v]
next costume
stop [All other scripts in Sprite v]
HyacinthoDani
Scratcher
47 posts

how do i make a sprite completely stop moving

Make it stop all the other scripts and forever go to the x,y u wanted
Supreme_Weeb
Scratcher
51 posts

how do i make a sprite completely stop moving

Queer_Royalty wrote:

If you know where the sprite is standing, perhaps you could run your script, and then put this after it?
forever
go to x: (...) y: (...)
end
it takes it to the middle of the screen and I just need it to stop where it currently is
Supreme_Weeb
Scratcher
51 posts

how do i make a sprite completely stop moving

HyacinthoDani wrote:

Make it stop all the other scripts and forever go to the x,y u wanted
unhelpful
Supreme_Weeb
Scratcher
51 posts

how do i make a sprite completely stop moving

ItsMe-XTV- wrote:

Try this
when I receive [Whatever broadcast you want (should be activated when you want the person to stop moving) v]
next costume
stop [All other scripts in Sprite v]
stopping the script stops them from spawning so that wont work
thelion5000
Scratcher
100+ posts

how do i make a sprite completely stop moving

You need to make the random costume be set in a variable so you can know which costume it randomly chose
You need to do this:

when [w] key pressed
if <not <(costume #) = (Costume random)> then
move (7) steps
end

Of course you can use one of these 2 blocks below it doesnt matter
if <> then

end
if <> then 



else

end

Last edited by thelion5000 (Sept. 16, 2021 16:55:07)

Powered by DjangoBB