Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Can anyone fix this code?
- Eliza-octopus48
- Scratcher
4 posts
Can anyone fix this code?
So, I'm creating this game for a competition. There's this piece of code that isn't working. Can anyone suggest how to fix it?
when I receive [Start cutscene 1 v]
if <<(x position) = [249]> and <(y position) = [-70]>> then
broadcast [Show me level 1 v]
end
- PhiPhenomenon
- Scratcher
500+ posts
Can anyone fix this code?
The script only checks if the x and y position fits once. You can fix it with this:
Next time you have a scripting problem, please post it in Help with Scripts.
when I receive [Start cutscene 1 v]
wait until <<(x position) = [249]> and <(y position) = [-70]>>
broadcast [Show me level 1 v]
Next time you have a scripting problem, please post it in Help with Scripts.
Last edited by PhiPhenomenon (March 24, 2024 15:19:33)
- Eliza-octopus48
- Scratcher
4 posts
Can anyone fix this code?
Thanks for replying. Sorry this was my first post and I didn't know where to put it.
- Discussion Forums
- » Questions about Scratch
- » Can anyone fix this code?