Discuss Scratch

Isaac2021Wright
Scratcher
5 posts

how do you make you sprite stop moving after an event?

so i have a big game that i am making. it is a choose your own adventure game, but i have a problem. i want the player to stop automaticaly moving after the first minigame ends. i have tryed doing a lot of ways to make it stop, but it either makes the sprite stop moving after minigame 1 ends, but you cant grab the potions. so that does not work, or it will let you grab the potions, but the sprite will keep moving after minigame one. i would put a when i receve this messege then stop this script, but it will not let me put that into the movement code. please help.

Last edited by Isaac2021Wright (March 1, 2022 16:07:27)

NeonG4
Scratcher
1000+ posts

how do you make you sprite stop moving after an event?

can you show me a project link? Make sure it is shared.
Great_Games123
Scratcher
6 posts

how do you make you sprite stop moving after an event?

this might work

when I receive [ messeage]
stop [ other scripts in this sprite]


Isaac2021Wright
Scratcher
5 posts

how do you make you sprite stop moving after an event?

to put my game here i just put the link here right? if here it is: https://scratch.mit.edu/projects/595932513/
Tunde123
Scratcher
1000+ posts

how do you make you sprite stop moving after an event?

You should have done this:
when [... v] key pressed
move (...) steps

Last edited by Tunde123 (March 1, 2022 16:16:34)

Tunde123
Scratcher
1000+ posts

how do you make you sprite stop moving after an event?

Tunde123 wrote:

You should have done this:
when [... v] key pressed
move (...) steps
For more context:
when [... v] key pressed
repeat until <not <key [... v] pressed?>>
move (...) steps
end
Isaac2021Wright
Scratcher
5 posts

how do you make you sprite stop moving after an event?

Great_Games123 i will try that, but how will it know to stop only the one i want to stop?

Edit: thank you so much that rilly helped

Last edited by Isaac2021Wright (March 1, 2022 16:20:35)

Tunde123
Scratcher
1000+ posts

how do you make you sprite stop moving after an event?

Isaac2021Wright wrote:

Great_Games123 i will try that, but how will it know to stop only the one i want to stop?

Edit: thank you so much that rilly helped
Try this:
when [... v] key pressed
repeat until <not <key [... v] pressed?>>
move (...) steps
end
Isaac2021Wright
Scratcher
5 posts

how do you make you sprite stop moving after an event?

hey so i ran into another problem. it does not matter that much, but it still will be better with it. so i have a few messages that are being broadcasted and they are receive on one or two sprites, but not others. do you know why this is happening and how to fix it? thank you for the help. i hope this game turns out good.

Edit: hey so i moved on and now i have another problem. my code is like this:
say [] for (2) secs
wait (3) secs
switch backdrop to [galaxy]
switch costume to [giant player]
and then other things. how ever it imiditly swaps costumes and does not wait but every thing else does wait. please help.

Last edited by Isaac2021Wright (March 3, 2022 16:09:49)

Tunde123
Scratcher
1000+ posts

how do you make you sprite stop moving after an event?

Isaac2021Wright wrote:

hey so i ran into another problem. it does not matter that much, but it still will be better with it. so i have a few messages that are being broadcasted and they are receive on one or two sprites, but not others. do you know why this is happening and how to fix it? thank you for the help. i hope this game turns out good.
Put the
when I receive [... v]
onto sprites that need it.
Isaac2021Wright
Scratcher
5 posts

how do you make you sprite stop moving after an event?

Tunde123 wrote:

Isaac2021Wright wrote:

hey so i ran into another problem. it does not matter that much, but it still will be better with it. so i have a few messages that are being broadcasted and they are receive on one or two sprites, but not others. do you know why this is happening and how to fix it? thank you for the help. i hope this game turns out good.
Put the
when I receive [... v]
onto sprites that need it.
i did that it did not work
Tunde123
Scratcher
1000+ posts

how do you make you sprite stop moving after an event?

Isaac2021Wright wrote:

Tunde123 wrote:

Isaac2021Wright wrote:

hey so i ran into another problem. it does not matter that much, but it still will be better with it. so i have a few messages that are being broadcasted and they are receive on one or two sprites, but not others. do you know why this is happening and how to fix it? thank you for the help. i hope this game turns out good.
Put the
when I receive [... v]
onto sprites that need it.
i did that it did not work
Put it onto more sprites.
Therealegg4683
Scratcher
3 posts

how do you make you sprite stop moving after an event?

How do I make a sprite wait until it stops moving to sense it’s direction
spacetoaster72
Scratcher
4 posts

how do you make you sprite stop moving after an event?

Great_Games123 wrote:

this might work

when I receive [ messeage]
stop [ other scripts in this sprite]


lite saver
Iamcool0806
Scratcher
3 posts

how do you make you sprite stop moving after an event?

hello
jmb1293634
Scratcher
1000+ posts

how do you make you sprite stop moving after an event?

Iamcool0806 wrote:

hello
please only post if you have something to add to the discussion

Powered by DjangoBB